Skip to content

Commit efe6727

Browse files
committed
ci(jest): test on all combinations
1 parent 3690715 commit efe6727

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

.github/workflows/jest.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,29 @@ name: Unit Tests
22
on: [ push, pull_request ]
33
jobs:
44
jest:
5-
name: Jest Coverage
6-
runs-on: ubuntu-latest
5+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
node_version: [10, 12, 14]
10+
os: [ubuntu-latest, windows-latest, macos-latest]
711
steps:
8-
- uses: actions/checkout@v1
9-
- run: yarn
10-
- run: yarn bootstrap
11-
- uses: mattallty/jest-github-action@v1
12+
- uses: actions/checkout@v2
13+
- name: Use node ${{ matrix.node_version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node_version: ${{ matrix.node_version }}
17+
- name: Restore lerna cache
18+
uses: actions/cache@v2
19+
with:
20+
path: |
21+
node_modules
22+
*/*/node_modules
23+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
24+
- name: Install yarn dependencies
25+
run: yarn install
26+
- name: Jest coverage
27+
uses: mattallty/jest-github-action@v1
1228
continue-on-error: true
1329
with:
1430
changes-only: true

0 commit comments

Comments
 (0)