forked from ScootKit/CustomDCBot
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 685 Bytes
/
Copy pathtest.yml
File metadata and controls
25 lines (23 loc) · 685 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
name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ '18', '20', '22', '24', 'latest' ]
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# Native accelerators (zlib-sync, erlpack, ...) are optionalDependencies and may
# fail to build on newer Node; that does not fail the install. sqlite3 is required
# for the migration tests and builds here.
- run: npm install
- run: npm run test:unit