-
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 705 Bytes
/
test.yml
File metadata and controls
27 lines (27 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: test
on: [push, pull_request]
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
timeout-minutes: 10
name: "Test on Node.js ${{ matrix.node-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20, 22 ]
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup pnpm
uses: pnpm/action-setup@v4
- name: setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install
run: pnpm install
- name: Test
run: pnpm test