-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (26 loc) · 772 Bytes
/
Copy pathtests.yml
File metadata and controls
30 lines (26 loc) · 772 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
name: Tests (windows/macOS/ubuntu)
on: push
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node: [20, 22, 24]
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: npm ci
- name: run tests
shell: bash
run: for i in {1..4}; do npm run test:ci || exit 1; done
- name: Trust Coveralls Homebrew tap (Homebrew 6 requirement)
if: runner.os == 'macOS'
run: brew trust coverallsapp/coveralls
- name: Coveralls
uses: coverallsapp/github-action@v2