Skip to content

Commit 4f15b1a

Browse files
authored
Merge pull request #1 from Coder-Spirit/enable-ci
ci: enable ci checks
2 parents fee24b3 + c39c360 commit 4f15b1a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
merge_group:
9+
branches: [ main]
10+
11+
defaults:
12+
run:
13+
working-directory: .
14+
15+
jobs:
16+
build:
17+
strategy:
18+
matrix:
19+
node-version: [ 16, 18, 20 ]
20+
os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-12, macos-11]
21+
22+
runs-on: ${{ matrix.os }}
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'pnpm'
31+
- run: pnpm install
32+
- run: pnpm lint
33+
- run: pnpm build
34+
# - run: pnpm test

0 commit comments

Comments
 (0)