-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (71 loc) · 2.23 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
name: Quality checks 👌🧪
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
merge_group:
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 || 'main' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
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]
no_merge_commits:
name: No merge 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
fetch-depth: 0
- name: Check commits
uses: greenled/[email protected]
quality:
name: Run ${{ matrix.command }} 🕵️♂️
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command:
- lint
- check
- build
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
with:
show-progress: false
- name: Setup node environment ⚙️
uses: actions/[email protected]
with:
node-version: 20
cache: 'npm'
check-latest: true
- name: Install dependencies 📦
run: npm ci --no-audit
- name: Run ${{ matrix.command }} ⚙️
run: npm run ${{ matrix.command }}