Skip to content

Commit 65af12b

Browse files
committed
tests CI
1 parent efcdff1 commit 65af12b

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: Android
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- uses: actions/cache@v3
1717
id: yarn-cache

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Lint Checks
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- uses: actions/cache@v3
1111
id: yarn-cache
1212
with:

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Tests
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
jest:
8+
name: Jest
9+
permissions:
10+
checks: write
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: actions/cache@v3
17+
id: yarn-cache
18+
with:
19+
path: "./.yarn/cache"
20+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
21+
restore-keys: |
22+
${{ runner.os }}-yarn-
23+
24+
- name: Install Dependencies
25+
run: yarn install --check-cache
26+
- uses: ArtiomTr/jest-coverage-report-action@v2
27+
with:
28+
test-script: yarn run jest --ci --json --coverage --testLocationInResults --outputFile=report.json
29+
30+
cypress:
31+
runs-on: ubuntu-latest
32+
name: Cypress
33+
steps:
34+
- uses: actions/checkout@v3
35+
36+
- uses: actions/cache@v3
37+
id: yarn-cache
38+
with:
39+
path: "./.yarn/cache"
40+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-yarn-
43+
44+
- name: Cypress run
45+
uses: cypress-io/github-action@v2

0 commit comments

Comments
 (0)