-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (28 loc) · 912 Bytes
/
build.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
40
name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
virtual-environment: ['ubuntu-latest', 'macos-13', 'windows-2019']
node: [12, 14, 16, 18, 20, 22]
runs-on: ${{ matrix.virtual-environment }}
steps:
- name: Configure git (Windows specific)
if: matrix.virtual-environment == 'windows-2019'
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
run: pip install setuptools
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies and build
run: npm install
- name: Run linter
run: node node_modules/eslint/bin/eslint .
- name: Run test suite
run: node node_modules/mocha/bin/mocha tests