Skip to content

Commit eb90dd4

Browse files
committed
ci: add codeQuality job to run lint and format task
1 parent 2e225f7 commit eb90dd4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/CI.yml

+26
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,32 @@ 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: Build packages
26+
run: yarn build
27+
28+
- name: Check format
29+
run: yarn format
30+
31+
- name: Lint
32+
run: yarn lint
33+
1134
build:
35+
name: Build
36+
needs: [codeQuality]
1237
strategy:
1338
matrix:
1439
os: [ubuntu-22.04, windows-2022]
@@ -33,6 +58,7 @@ jobs:
3358

3459
nodeJsBaselineAptCompatibility:
3560
name: NodeJS installed from stock Ubuntu-LTS packages (not external sources)
61+
needs: [codeQuality]
3662
runs-on: ubuntu-22.04
3763
container:
3864
image: 'ubuntu:24.04'

0 commit comments

Comments
 (0)