-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 856 Bytes
/
Copy pathtest.yml
File metadata and controls
38 lines (31 loc) · 856 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
name: Tests
on:
push:
branches: ['**'] # run on every branch push
pull_request:
branches: [main, release, develop]
jobs:
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: macos-latest
strategy:
matrix:
node-version: [18, 20, 22]
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-node${{ matrix.node-version }}
path: ~/.argus/logs/
retention-days: 7