-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 735 Bytes
/
Copy pathnodejs.yml
File metadata and controls
33 lines (32 loc) · 735 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: Build and Test
on:
pull_request:
branches:
- main
- feature/*
- hotfix/*
jobs:
build_test:
name: Build and test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version:
- 11
- 12
- 14
os:
- macOS-latest
- ubuntu-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node_version }}
- run: |
npm install
npm run build
npm run test