-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (39 loc) · 943 Bytes
/
test.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: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-latest
node-version:
- 18.x
- 20.x
- 22.x
steps:
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |-
sudo apt-get update
sudo apt-get install -y default-jre graphviz
- name: 'Set up Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v1
with:
node-version: '${{ matrix.node-version }}'
- uses: actions/checkout@v2
- run: npm -v && node -v
- run: npm install && npm install --only=dev
- run: npm run test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}