Skip to content

Commit af88f67

Browse files
[wip] one workflow, multiple jobs
1 parent ff43618 commit af88f67

1 file changed

Lines changed: 49 additions & 2 deletions

File tree

.github/workflows/dev-checks.yml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
dev-check:
15+
api:
1616
runs-on: ubuntu-latest
17-
1817
steps:
1918
- uses: actions/checkout@v4
2019
- name: Use Node.js 20
@@ -26,12 +25,60 @@ jobs:
2625
run: npm ci
2726
- name: Check for manual changes to API
2827
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)" ]
28+
29+
circular:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Use Node.js 20
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: 'npm'
38+
- name: Install dependencies
39+
run: npm ci
2940
- name: Check for circular dependencies
3041
run: npm run circular
42+
43+
build:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- name: Use Node.js 20
48+
uses: actions/setup-node@v4
49+
with:
50+
node-version: 20
51+
cache: 'npm'
52+
- name: Install dependencies
53+
run: npm ci
3154
- name: Run build
3255
run: npm run build
56+
57+
lint:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: Use Node.js 20
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: 20
65+
cache: 'npm'
66+
- name: Install dependencies
67+
run: npm ci
3368
- name: Run lint check
3469
run: npm run lint
70+
71+
unit-tests:
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v4
75+
- name: Use Node.js 20
76+
uses: actions/setup-node@v4
77+
with:
78+
node-version: 20
79+
cache: 'npm'
80+
- name: Install dependencies
81+
run: npm ci
3582
- name: Run unit tests
3683
run: npm run test:coverage
3784
- name: Run unit tests with cockpit

0 commit comments

Comments
 (0)