Skip to content

Commit 4254a60

Browse files
authored
Merge pull request #499 from phanect/feat-gha
Add GitHub Actions
2 parents fcc9e20 + d067c80 commit 4254a60

File tree

3 files changed

+2777
-669
lines changed

3 files changed

+2777
-669
lines changed

.github/workflows/actions.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GitHub Actions
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version:
17+
- 18
18+
- 20
19+
- 22
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Use Node.js v${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: npm
27+
- run: npm ci
28+
- run: npm run build
29+
# - run: npm test
30+
31+
check:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Use Node.js 22
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 22
39+
cache: npm
40+
- run: npm ci
41+
- run: npm run check

0 commit comments

Comments
 (0)