Skip to content

Commit e24eb4b

Browse files
committed
chore: add test github action
1 parent 67ccfd0 commit e24eb4b

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,27 @@ on:
88
branches: [ master ]
99
pull_request:
1010
branches: [ master ]
11-
1211
jobs:
1312
build:
14-
1513
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Install pnpm
19+
uses: pnpm/[email protected]
20+
with:
21+
version: 6.15.1
1622

17-
strategy:
18-
matrix:
19-
node-version: [12.x, 14.x, 16.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23+
- name: Use Node.js v16
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: v16
27+
registry-url: https://registry.npmjs.org/
28+
cache: "pnpm"
2129

22-
steps:
23-
- uses: actions/checkout@v3
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
- run: npm ci
30-
- run: npm run build --if-present
31-
- run: npm test
30+
- name: Install Dependencies
31+
run: pnpm install
32+
33+
- name: Test
34+
run: pnpm run test

0 commit comments

Comments
 (0)