Skip to content

Commit d3aba14

Browse files
committed
ci: upgrade actions
1 parent 4f5985e commit d3aba14

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33

44
name: CI
55

6-
on:
7-
pull_request:
8-
push:
9-
branches:
10-
- main
6+
on: [push, pull_request]
117

128
jobs:
139
lint:
@@ -19,38 +15,36 @@ jobs:
1915
runs-on: ${{ matrix.os }}
2016
steps:
2117
- name: Checkout the repository
22-
uses: actions/checkout@v2
23-
- name: Setup Node ${{ matrix.node-version }}
24-
uses: actions/setup-node@v2
18+
uses: actions/checkout@v3
19+
- name: Use Node ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
2521
with:
2622
node-version: ${{ matrix.node-version }}
27-
registry-url: 'https://registry.npmjs.org/'
2823
- name: Check for lint/formatting errors
2924
run: |
3025
npm ci
3126
npm run lint
32-
test:
33-
name: Test
27+
test-library:
28+
name: Test (Library)
3429
strategy:
3530
matrix:
3631
node-version: [lts/gallium, lts/*, latest]
3732
os: [ubuntu-latest, windows-latest, macos-latest]
3833
runs-on: ${{ matrix.os }}
3934
steps:
4035
- name: Checkout the repository
41-
uses: actions/checkout@v2
42-
- name: Setup Node ${{ matrix.node-version }}
43-
uses: actions/setup-node@v2
36+
uses: actions/checkout@v3
37+
- name: Use Node ${{ matrix.node-version }}
38+
uses: actions/setup-node@v3
4439
with:
4540
node-version: ${{ matrix.node-version }}
46-
registry-url: 'https://registry.npmjs.org/'
4741
- name: Run library tests
4842
run: |
4943
npm ci
50-
npm test:lib
44+
npm run test:lib
5145
publish:
5246
name: Publish
53-
needs: [lint, test]
47+
needs: [lint, test-library]
5448
if: startsWith(github.ref, 'refs/tags/v')
5549
runs-on: ubuntu-latest
5650
steps:

0 commit comments

Comments
 (0)