-
Notifications
You must be signed in to change notification settings - Fork 94
42 lines (39 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
39
40
41
42
name: Test
on:
# Run on pushes to main..
push:
branches:
- main
# ..any pull request and merge queue
pull_request:
merge_group:
# Cancel any 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: true
jobs:
mobile:
name: Mobile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
with:
path: coverage/lcov-report
- name: 'Upload to Codecov'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}