Skip to content

Commit 178e79e

Browse files
authored
chore: add CI workflow for continuous integration and validation (#150)
* chore: add CI workflow for continuous integration and validation * chore: update Node.js version to 24.x and pnpm version to 10.29.2 in CI workflow
1 parent 4aee25e commit 178e79e

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
- "feat/**"
9+
- "fix/**"
10+
- "chore/**"
11+
pull_request:
12+
branches:
13+
- main
14+
- develop
15+
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: ci-${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
validate:
25+
name: Validate (Node ${{ matrix.node-version }})
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 20
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
node-version: ["24.x"]
32+
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: Setup pnpm
38+
uses: pnpm/action-setup@v4
39+
with:
40+
version: 10.29.2
41+
run_install: false
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: ${{ matrix.node-version }}
47+
cache: pnpm
48+
49+
- name: Install dependencies
50+
run: pnpm install --frozen-lockfile
51+
52+
- name: Type check
53+
run: pnpm exec tsc --noEmit
54+
55+
- name: Lint
56+
run: pnpm lint
57+
58+
- name: Test
59+
run: pnpm test -- --run
60+
61+
- name: Build
62+
run: pnpm build

0 commit comments

Comments
 (0)