-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (45 loc) · 1.39 KB
/
Copy pathtest.yml
File metadata and controls
48 lines (45 loc) · 1.39 KB
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
46
47
48
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Upgrade to most recent release in React's Next channel
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
run: yarn upgrade react@next react-dom@next -W -D
- name: React Versions
run: yarn why react && yarn why react-dom
- name: Lint
run: yarn lint
- name: Type Check
run: yarn type
- name: Clear Cache in Jest
run: yarn test:clearCache
env:
CI: true
- name: Unit Test
run: yarn test --coverage
env:
CI: true
- uses: actions/upload-artifact@v2
with:
name: packages
path: |
packages/react-performance-testing/coverage
packages/jest-performance-testing/coverage
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/react-performance-testing/coverage/coverage-final.json,./packages/jest-performance-testing/coverage/coverage-final.json
flags: unittest
name: codecov-umbrella
fail_ci_if_error: true