-
Notifications
You must be signed in to change notification settings - Fork 47
86 lines (79 loc) · 1.88 KB
/
ci.action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
on:
workflow_call:
pull_request:
paths:
- action.ts
- action.yml
- package.json
concurrency:
group: ${{ github.ref || 'ci' }}/action.ts
cancel-in-progress: true
jobs:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./scripts/dist.sh
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
std:
needs: dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: ./
- run: pkgx --version
plus-pkgs:
needs: dist
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- [self-hosted, macOS, ARM64] # we need to be sure the action
- [self-hosted, linux, ARM64] # works in arm64 environments
prefix:
- null
- /opt
container:
- null
include:
- os: ubuntu-latest
container: debian:buster-slim
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: ./
with:
PKGX_DIR: ${{ matrix.prefix }}
+: node@18 deno.land
- run: test -f '${{ matrix.prefix }}/pkgx.sh/v*/bin/pkgx'
if: ${{ matrix.prefix }}
- run: pkgx --version
- run: node --eval 'console.log(1)'
- run: deno --version
multiple-apply-is-ok:
runs-on: ubuntu-latest
needs: dist
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: ./
- run: pkgx --version
- uses: ./
- run: pkgx --version