-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) Β· 1.45 KB
/
quality-assurance.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
43
44
45
46
47
48
49
50
51
52
53
54
name: 'π Quality assurance'
on:
push:
jobs:
quality-assurance:
strategy:
matrix:
package:
[
'apps/app',
'apps/api',
'apps/blog',
'packages/twrnc',
'packages/utils',
'packages/tailwind-config',
'packages/expo-config',
'packages/next-config',
]
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- name: βοΈ Checkout
uses: actions/checkout@v3
- name: βοΈ Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x.x
- name: βοΈ Setup Yarn
uses: actions/cache@v3.3.2
with:
path: node_modules
key: yarn-cache-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: yarn-cache-
- name: βοΈ Install deps
run: yarn install --immutable
- name: π¦ Check deps
run: yarn deps:check
- name: βοΈ Check static types
run: yarn typecheck
working-directory: ${{ matrix.package }}
- name: π― Check test coverage
with:
package-manager: yarn
test-script: yarn test
working-directory: ${{ matrix.package }}
uses: ArtiomTr/jest-coverage-report-action@v2
- name: π
Check linting
run: yarn lint
working-directory: ${{ matrix.package }}