-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 811 Bytes
/
Copy pathtest.yml
File metadata and controls
39 lines (30 loc) · 811 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
28
29
30
31
32
33
34
35
36
37
38
39
name: Test
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
- name: Use Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version-file: .nvmrc
- name: Setup pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
with:
run_install: true
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- name: Test Node.js v18
run: pnpm --use-node-version=18.20.4 test
- name: Lint
run: pnpm lint