Skip to content

Commit 2cd44cf

Browse files
committed
ci: add GitHub Action ci workflow
1 parent df5fb46 commit 2cd44cf

File tree

2 files changed

+2665
-5796
lines changed

2 files changed

+2665
-5796
lines changed

.github/workflows/ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js from `.nvmrc`
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version-file: '.nvmrc'
19+
# cache: 'pnpm'
20+
21+
- name: Install dependencies & Build
22+
run: |
23+
corepack enable
24+
pnpm install
25+
pnpm run --if-present build
26+
27+
- name: Run tests
28+
run: pnpm run --if-present test

0 commit comments

Comments
 (0)