-
Notifications
You must be signed in to change notification settings - Fork 87
38 lines (35 loc) · 1.1 KB
/
test.yml
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
name: Test
on:
# ..any pull request and merge queue (covers main)
pull_request:
merge_group:
# Cancel any non merge queue in progress run of the workflow for a given PR
# This avoids building outdated code
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: ${{ github.event_name != 'merge_group' }}
jobs:
mobile:
name: Mobile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/yarn-install
- name: Build
run: yarn build
- name: Update RootStateSchema if necessary
run: yarn test:update-root-state-schema
- name: Fail if someone forgot to commit "RootStateSchema.json"
run: git diff --exit-code
- name: Run mobile tests
run: |
mkdir -p test-results/jest
yarn test:ci
- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
path: coverage/lcov-report
- name: 'Upload to Codecov'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}