-
Notifications
You must be signed in to change notification settings - Fork 38
39 lines (37 loc) · 961 Bytes
/
tests.yml
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: Tests
on:
push:
branches: [master]
pull_request:
branches: ['**']
jobs:
test:
name: Node v${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
cache: 'npm'
- name: npm10
run: npm i -g 'npm@10.*' --registry=https://registry.npmjs.org
- name: Install packages for project
run: npm ci
- run: npm run build
- name: Install packages for tests
run: |
cd tests
npm ci
- name: Run tests
run: |
cd tests
npm run test