-
-
Notifications
You must be signed in to change notification settings - Fork 228
102 lines (84 loc) · 2.43 KB
/
quality_checks.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Quality checks 👌🧪
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
paths-ignore:
- '**/*.md'
merge_group:
schedule:
- cron: 30 7 * * 6
workflow_dispatch:
jobs:
dependency-review:
name: Vulnerable dependencies 🔎
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
with:
show-progress: false
- name: Scan
uses: actions/[email protected]
with:
## Workaround from https://github.com/actions/dependency-review-action/issues/456
## TODO: Remove when necessary
base-ref: ${{ github.event.pull_request.base.sha || 'master' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
lint:
name: Lint 🔬
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
with:
show-progress: false
- name: Setup node environment ⚙️
uses: actions/[email protected]
with:
node-version: 20
check-latest: true
- name: Install dependencies 📦
run: npm ci --no-audit
- name: Run linter ✏️
run: npm run lint
typecheck:
name: Typecheck 🈯
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
with:
show-progress: false
- name: Setup node environment ⚙️
uses: actions/[email protected]
with:
node-version: 20
check-latest: true
- name: Install dependencies 📦
run: npm ci --no-audit
- name: Run typecheck 📖
run: npm run typecheck
build:
name: Build 🏗️
uses: ./.github/workflows/package.yml
with:
commit: ${{ github.sha }}
conventional_commits:
name: Conventional commits check 💬
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
with:
show-progress: false
- name: Check if all commits comply with the specification
uses: webiny/[email protected]