File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 6
6
strategy :
7
7
matrix :
8
8
os :
9
- - ${{ vars.UBUNTU_VERSION }}
10
- node-version :
11
- - 12.x
12
- - 14.x
13
- - 16.x
14
- - 18.x
9
+ - ubuntu-22.04
10
+ node-version : [ 18.x, 20.x ]
15
11
steps :
16
12
- uses : actions/checkout@v4
17
13
- name : ' Install node.js ${{ matrix.node-version }}'
20
16
node-version : ' ${{ matrix.node-version }}'
21
17
- name : Run unit tests
22
18
run : |
19
+ [[ -f ./bin/ci-setup ]] && ./bin/ci-setup
23
20
npm install
24
21
npm run ci
Original file line number Diff line number Diff line change 6
6
npm-publish :
7
7
needs : unit-tests
8
8
if : github.ref == 'refs/heads/master' && needs.unit-tests.result == 'success'
9
- runs-on : ${{ vars.UBUNTU_VERSION }}
9
+ runs-on : ubuntu-22.04
10
10
steps :
11
11
- uses : actions/checkout@v4
12
12
- name : Install Node.js
26
26
# note: github actions won't run a job if you don't call one of the status check functions, so `always()` is called since it evalutes to `true`
27
27
if : ${{ always() && needs.unit-tests.result == 'success' && (needs.npm-publish.result == 'success' || needs.npm-publish.result == 'skipped') }}
28
28
needs : [unit-tests, npm-publish]
29
- runs-on : ${{ vars.UBUNTU_VERSION }}
29
+ runs-on : ubuntu-22.04
30
30
steps :
31
31
- uses : actions/checkout@v4
32
32
- name : Build Docker images
You can’t perform that action at this time.
0 commit comments