forked from request/request-promise-native
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 730 Bytes
/
test.yml
File metadata and controls
33 lines (27 loc) · 730 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
name: Test with mocha
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# https://nodejs.org/en/about/previous-releases#release-schedule
# https://github.com/actions/setup-node?tab=readme-ov-file#supported-version-syntax
node-version: [18.x, 20.x, 22.x, 23.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Lint and test
run: |
npm ci
npm run check-dependencies
npm run lint
npm run check-dts
npm t