Skip to content

Commit

Permalink
action: test on windows with a build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 22, 2019
1 parent 82a1cb0 commit b8f3a2f
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Node CI

on: [push]
on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

node: [8.x, 10.x, 12.x]
os: [ubuntu-latest, windows-latest]
cmd: [npm cit]
exclude: # only test windows on node 12
- os: windows-latest
node: 8.x
- os: windows-latest
node: 10.x
- os: windows-latest
node: 12.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: npm cit
node-version: ${{ matrix.node }}
- name: ${{ matrix.cmd }}
run: ${{ matrix.cmd }}

0 comments on commit b8f3a2f

Please sign in to comment.