Skip to content

Commit f20f28c

Browse files
committed
ci(jest): only do code coverage on ubuntu with node 14
1 parent 48df239 commit f20f28c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/jest.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ jobs:
2323
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
2424
- name: Install yarn dependencies
2525
run: yarn install
26-
- name: Jest coverage
26+
- name: Jest with code coverage
27+
if: matrix.node_version == 14 && matrix.os == 'ubuntu'
2728
uses: mattallty/jest-github-action@v1.0.3
2829
with:
2930
changes-only: true
3031
test-command: 'yarn test:coverage'
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Jest
35+
if: matrix.node_version != 14 && matrix.os != 'ubuntu'
36+
run: yarn jest

0 commit comments

Comments
 (0)