Skip to content

Commit 93b204b

Browse files
committed
ci: merge lint to checks workflow
Signed-off-by: Usama Idriss Kakumba <[email protected]>
1 parent 44c6e97 commit 93b204b

File tree

2 files changed

+33
-61
lines changed

2 files changed

+33
-61
lines changed

.github/workflows/checks.yml

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
name: Checks
22
on:
3-
pull_request:
4-
types: [opened, synchronize]
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- '*'
8+
paths-ignore:
9+
- 'system/**/*'
10+
- '.github/**/*'
11+
- '*.md'
512

613
jobs:
7-
checks:
8-
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [16, 18, 20]
12-
steps:
13-
- name: Checkout Repo
14-
uses: actions/checkout@v4
15-
16-
- name: Setup Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: ${{ matrix.node-version }}
14+
checks:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [16, 18, 20]
19+
steps:
20+
- name: Checkout Repo
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
2027

21-
- name: Setup and install deps
22-
run: |
23-
npm install
28+
- name: Setup and install deps
29+
run: npm install
30+
31+
- name: Lint check
32+
run: npm run lint
2433

25-
- name: Prettier check
26-
run: |
27-
npm run format:check
34+
- name: Prettier check
35+
run: npm run format:check
2836

29-
- name: Build
30-
run: |
31-
npm run build
37+
- name: Build
38+
run: npm run build
3239

33-
- name: Test
34-
run: |
35-
npm run test
40+
- name: Test
41+
run: npm run test

.github/workflows/lint.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)