File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,13 +2,29 @@ name: Unit Tests
22on : [ push, pull_request ]
33jobs :
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
You can’t perform that action at this time.
0 commit comments