Skip to content

Commit 2cb184e

Browse files
committed
Update ci.yml
1 parent d1ce950 commit 2cb184e

File tree

1 file changed

+50
-23
lines changed

1 file changed

+50
-23
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,57 @@ on:
88
- '**'
99
workflow_dispatch:
1010
jobs:
11-
test:
11+
lint:
1212
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [18, 20, 22]
16-
fail-fast: false
17-
name: Test Node ${{ matrix.node-version }}
13+
name: Lint
1814
steps:
19-
- name: Fix usage of insecure GitHub protocol
20-
run: sudo git config --system url."https://github".insteadOf "git://github"
21-
- uses: actions/checkout@v3
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
cache: 'npm'
27-
- name: Install Dependancies
28-
run: npm install
29-
- name: Check Linting
30-
run: npm run lint
31-
- name: Run Unit Tests
32-
run: npm run test:unit
33-
- name: Run e2e Tests
34-
run: npm run test:e2e
15+
- name: Fix usage of insecure GitHub protocol
16+
run: sudo git config --system url."https://github".insteadOf "git://github"
17+
- uses: actions/checkout@v3
18+
- name: Use Node.js 22
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 22
22+
cache: 'npm'
23+
- name: Install Dependencies
24+
run: npm ci
25+
- name: Check Linting
26+
run: npm run lint
27+
28+
unit-tests:
29+
runs-on: ubuntu-latest
30+
name: Unit Tests
31+
steps:
32+
- name: Fix usage of insecure GitHub protocol
33+
run: sudo git config --system url."https://github".insteadOf "git://github"
34+
- uses: actions/checkout@v3
35+
- name: Use Node.js 22
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: 22
39+
cache: 'npm'
40+
- name: Install Dependencies
41+
run: npm ci
42+
- name: Run Unit Tests
43+
run: npm run test:unit
44+
45+
e2e-tests:
46+
runs-on: ubuntu-latest
47+
name: End-to-End Tests
48+
steps:
49+
- name: Fix usage of insecure GitHub protocol
50+
run: sudo git config --system url."https://github".insteadOf "git://github"
51+
- uses: actions/checkout@v3
52+
- name: Use Node.js 22
53+
uses: actions/setup-node@v3
54+
with:
55+
node-version: 22
56+
cache: 'npm'
57+
- name: Install Dependencies
58+
run: npm ci
59+
- name: Run e2e Tests
60+
run: npm run test:e2e
61+
3562
concurrency:
3663
group: ${{ github.workflow }}-${{ github.ref }}
37-
cancel-in-progress: true
64+
cancel-in-progress: true

0 commit comments

Comments
 (0)