-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (40 loc) · 1.04 KB
/
jest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Run Jest
on:
pull_request: {}
push:
branches:
- master
jobs:
jest:
name: Jest w/ Node:${{ matrix.node }} ESLint:${{ matrix.eslint }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 14.x
- 16.x
- 18.x
- 20.x
eslint:
- 7
- 8
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn add eslint@${{ matrix.eslint }}
- name: yarn run test && report coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: 03c045faa77d44bb865e441b9507cb2a6ee668a225962491ce40d37d6b297899
with:
coverageCommand: yarn test:ci
coverageLocations: |
${{ github.workspace }}/coverage/lcov.info:lcov
debug: true
- name: Reset local changes
run: git checkout . && yarn