Skip to content

Commit b03ece5

Browse files
committed
Pull out lint and format workflow
1 parent 1bf186d commit b03ece5

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
lint-and-format:
7+
name: Lint and Format
8+
timeout-minutes: 5
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: 20
15+
cache: npm
16+
17+
- run: npm ci
18+
- run: npm run lint
19+
- run: npm run format:check

.github/workflows/tests.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,3 @@ jobs:
9595
- run: xvfb-run -a npm test
9696
if: runner.os == 'Linux'
9797
- run: npm run test:cache-github-real
98-
99-
lint-and-format:
100-
timeout-minutes: 5
101-
runs-on: ubuntu-22.04
102-
steps:
103-
- uses: actions/checkout@v6
104-
- uses: actions/setup-node@v6
105-
with:
106-
node-version: 20
107-
cache: npm
108-
109-
- run: npm ci
110-
- run: npm run lint
111-
- run: npm run format:check

0 commit comments

Comments
 (0)