Skip to content

Commit b8ea04e

Browse files
Merge pull request #873 from usamaidrsk/ci-add-lint-checks
(ci): Merge Lint Check Workflows into a Single Workflow `checks.yml`
2 parents 93b7025 + b128272 commit b8ea04e

File tree

3 files changed

+44
-69
lines changed

3 files changed

+44
-69
lines changed

.github/workflows/checks.yml

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

.github/workflows/lint.yml

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

.github/workflows/node-checks.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Node version and Lint Check
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- '*'
8+
paths-ignore:
9+
- 'system/**/*'
10+
- '.github/**/*'
11+
- '*.md'
12+
13+
jobs:
14+
compatibility-check:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [16, 18, 20]
19+
steps:
20+
- name: Checkout Repository
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 }}
27+
28+
- name: Install Dependencies
29+
run: npm install
30+
31+
- name: Lint Check
32+
run: npm run lint
33+
34+
- name: Prettier Check
35+
run: npm run format:check
36+
37+
- name: Build Project
38+
run: npm run build
39+
40+
- name: Run Tests
41+
run: npm run test
42+
43+
- name: Log Node.js Version
44+
run: echo "Tested on Node.js version ${{ matrix.node-version }}"

0 commit comments

Comments
 (0)