Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 7ecd2a6

Browse files
committed
Update test GitHub Actions Workflow
This was prompted by the final deprecation of v1 and v2 of the actions/cache action, which will stop working in February.
1 parent a9334c9 commit 7ecd2a6

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,14 @@
11
name: Test Packages
22
on:
33
push:
4-
branches: [master]
4+
branches: [main]
55
pull_request:
66
types: [opened, synchronize]
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
node: ['10', '12']
14-
name: Build with Node ${{ matrix.node }}
15-
steps:
16-
- uses: actions/checkout@v2
17-
with:
18-
fetch-depth: 1
19-
- name: Setup node
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: ${{ matrix.node }}
23-
- run: yarn install --frozen-lockfile --check-files
24-
- run: yarn lerna run prepare --stream
25-
- run: yarn lint --max-warnings=0
26-
- uses: actions/cache@v2
27-
with:
28-
path: '*'
29-
key: v2-${{ github.sha }}-${{ matrix.node }}
309
test:
3110
runs-on: ubuntu-latest
32-
needs: build
3311
strategy:
34-
fail-fast: false
3512
matrix:
3613
node: ['10', '12']
3714
package:
@@ -40,14 +17,17 @@ jobs:
4017
]
4118
name: Test ${{ matrix.package }} on Node ${{ matrix.node }}
4219
steps:
43-
- uses: actions/cache@v2
20+
- uses: actions/checkout@v4
4421
with:
45-
path: '*'
46-
key: v2-${{ github.sha }}-${{ matrix.node }}
47-
- name: Set up Node
48-
uses: actions/setup-node@v1
22+
fetch-depth: 1
23+
- name: Setup node
24+
uses: actions/setup-node@v4
4925
with:
5026
node-version: ${{ matrix.node }}
27+
cache: yarn
28+
- run: yarn install --frozen-lockfile --check-files
29+
- run: yarn lerna run prepare --stream
30+
- run: yarn lint --max-warnings=0
5131
- name: Test ${{ matrix.package }}
5232
run: cd packages/${{ matrix.package }} && yarn test
5333
# run: cd packages/${{ matrix.package }} && yarn test --coverage

0 commit comments

Comments
 (0)