Skip to content

Commit 3a667fd

Browse files
committed
chore: split test and linter CI
1 parent 4638b57 commit 3a667fd

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/lint.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: linter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release
7+
- release-candidate
8+
tags:
9+
- v*
10+
pull_request:
11+
branches:
12+
- release
13+
- release-candidate
14+
- master
15+
jobs:
16+
linter:
17+
runs-on: 'ubuntu-latest'
18+
timeout-minutes: 40 # default is 360
19+
strategy:
20+
matrix:
21+
node-version: [20.x]
22+
steps:
23+
- name: Checkout
24+
# https://github.com/actions/checkout/releases/tag/v4.1.7
25+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
26+
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
# https://github.com/actions/setup-node/releases/tag/v4.0.2
29+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
33+
- name: Install dependencies
34+
run: npm install
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Lint and format
40+
run: npm run format:check && npm run lint

.github/workflows/main.yml renamed to .github/workflows/unit-test.yml

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
- name: Build
3737
run: npm run build
3838

39-
- name: Lint and format
40-
run: npm run format:check && npm run lint
41-
4239
- name: Test
4340
run: npm run test
4441

0 commit comments

Comments
 (0)