Skip to content

Commit 86cd9eb

Browse files
committed
chore: migrate CI to shared workflow
1 parent be96006 commit 86cd9eb

File tree

1 file changed

+3
-43
lines changed

1 file changed

+3
-43
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,7 @@
11
name: CI
22

3-
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
3+
on: [push, pull_request]
84

95
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
13-
strategy:
14-
matrix:
15-
node-version: [20.x, 22.x]
16-
17-
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
25-
26-
- name: Install dependencies
27-
run: npm ci
28-
29-
- name: Build
30-
run: npm run build
31-
32-
- name: Lint
33-
run: npm run lint
34-
35-
- name: Test
36-
run: npm test
37-
38-
- name: Test with coverage
39-
if: matrix.node-version == '22.x'
40-
run: npm run test:coverage
41-
42-
- name: Upload coverage
43-
if: matrix.node-version == '22.x'
44-
uses: codecov/codecov-action@v4
45-
with:
46-
file: ./coverage/lcov.info
47-
fail_ci_if_error: false
6+
ci:
7+
uses: 1mb-dev/.github/.github/workflows/ci-node.yml@main

0 commit comments

Comments
 (0)