Skip to content

Commit 0a0387a

Browse files
committed
ci: run tests
1 parent 75fed1f commit 0a0387a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read # to fetch code (actions/checkout)
7+
8+
jobs:
9+
build:
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.platform }}-${{ matrix.node }}
12+
cancel-in-progress: true
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
node:
18+
- '16.14'
19+
- '18'
20+
- '20'
21+
platform:
22+
- ubuntu-latest
23+
- windows-latest
24+
25+
name: '${{matrix.platform}} / Node.js ${{ matrix.node }}'
26+
runs-on: ${{matrix.platform}}
27+
28+
steps:
29+
- name: Checkout Commit
30+
uses: actions/checkout@v3
31+
- name: Install pnpm
32+
uses: pnpm/[email protected]
33+
with:
34+
version: next-8
35+
standalone: true
36+
- name: Setup Node
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: ${{ matrix.node }}
40+
cache: 'pnpm'
41+
- name: pnpm install
42+
run: pnpm install
43+
# - name: Audit
44+
# run: pnpm audit
45+
- name: run tests
46+
run: pnpm test

0 commit comments

Comments
 (0)