Skip to content

Commit a37c8c7

Browse files
committed
ci: add codeQuality job to run lint format and deps tasks
1 parent 2e225f7 commit a37c8c7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/CI.yml

+25
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,31 @@ on:
88
types: [opened, synchronize]
99

1010
jobs:
11+
codeQuality:
12+
name: Code quality
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: yarn
21+
22+
- name: Install dependencies
23+
run: yarn install --ignore-engines --frozen-lockfile
24+
25+
- name: Check format
26+
run: yarn format
27+
28+
- name: Lint
29+
run: yarn lint
30+
31+
- name: Deps check
32+
run: yarn deps
33+
1134
build:
35+
needs: [codeQuality]
1236
strategy:
1337
matrix:
1438
os: [ubuntu-22.04, windows-2022]
@@ -33,6 +57,7 @@ jobs:
3357

3458
nodeJsBaselineAptCompatibility:
3559
name: NodeJS installed from stock Ubuntu-LTS packages (not external sources)
60+
needs: [codeQuality]
3661
runs-on: ubuntu-22.04
3762
container:
3863
image: 'ubuntu:24.04'

0 commit comments

Comments
 (0)