You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/dev-checks.yml
+59-6Lines changed: 59 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,14 @@ on:
7
7
branches: [ "main" ]
8
8
merge_group:
9
9
10
+
concurrency:
11
+
group: ${{github.workflow}}-${{ github.ref }}
12
+
cancel-in-progress: true
13
+
10
14
jobs:
11
-
dev-check:
15
+
build:
16
+
name: Build Check
12
17
runs-on: ubuntu-latest
13
-
14
18
steps:
15
19
- uses: actions/checkout@v4
16
20
- name: Use Node.js 20
@@ -20,11 +24,60 @@ jobs:
20
24
cache: 'npm'
21
25
- name: Install dependencies
22
26
run: npm ci
23
-
- name: Check for manual changes to API
24
-
run: npm run api:generate && [ -z "$(git status --porcelain=v1 2>/dev/null)" ] && echo "✓ No manual API changes." || echo "✗ API manually changed, please refer to the README for the procedure to follow for programmatically generated API endpoints." && [ -z "$(git status --porcelain=v1 2>/dev/null)" ]
25
-
- name: Check for circular dependencies
26
-
run: npm run circular
27
27
- name: Run build
28
28
run: npm run build
29
+
30
+
lint-checks:
31
+
name: ESLint
32
+
runs-on: ubuntu-latest
33
+
steps:
34
+
- uses: actions/checkout@v4
35
+
- name: Use Node.js 20
36
+
uses: actions/setup-node@v4
37
+
with:
38
+
node-version: 20
39
+
cache: 'npm'
40
+
- name: Install dependencies
41
+
run: npm ci
29
42
- name: Run lint check
30
43
run: npm run lint
44
+
45
+
circular-dependencies:
46
+
name: Circular Dependencies Check
47
+
runs-on: ubuntu-latest
48
+
steps:
49
+
- uses: actions/checkout@v4
50
+
- name: Use Node.js 20
51
+
uses: actions/setup-node@v4
52
+
with:
53
+
node-version: 20
54
+
cache: 'npm'
55
+
- name: Install dependencies
56
+
run: npm ci
57
+
- name: Check for circular dependencies
58
+
run: npm run circular
59
+
60
+
api-changes:
61
+
name: Manual API Changes Check
62
+
runs-on: ubuntu-latest
63
+
steps:
64
+
- uses: actions/checkout@v4
65
+
- name: Use Node.js 20
66
+
uses: actions/setup-node@v4
67
+
with:
68
+
node-version: 20
69
+
cache: 'npm'
70
+
- name: Install dependencies
71
+
run: npm ci
72
+
- name: Check for manual changes to API
73
+
run: |
74
+
npm run api:generate
75
+
if [ -n "$(git status --porcelain)" ]; then
76
+
echo
77
+
echo "✗ API manually changed, please refer to the README for the procedure to follow for programmatically generated API endpoints."
0 commit comments