more actions

This commit is contained in:
Aliaksei Chapyzhenka 2021-10-10 15:05:11 -07:00
parent 06683a581d
commit fdecf2f0a2
3 changed files with 39 additions and 5 deletions

View File

@ -1,13 +1,12 @@
name: Node name: Linux
on: [push] on: [push, pull_request]
jobs: jobs:
test: test:
name: Node ${{ matrix.node-version }} . ${{ matrix.os }} name: Linux ${{ matrix.node-version }}
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [12, 14, 16] node-version: [12, 14, 16]
os: [ubuntu-latest] # failing on [windows-latest, macOS-latest]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}

17
.github/workflows/macos.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: MacOS
on: [push, pull_request]
jobs:
test:
name: MacOS ${{ matrix.node-version }}
runs-on: macOS-latest
strategy:
matrix:
node-version: [12, 14, 16]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test

18
.github/workflows/windows.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Windows
on: [push, pull_request]
jobs:
test:
name: Node ${{ matrix.node-version }}
runs-on: windows-latest
strategy:
matrix:
node-version: [12, 14, 16]
os: [ubuntu-latest] # failing on [windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test