Skip to content

Commit

Permalink
Add build on Windows to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
j-devel committed Mar 22, 2022
1 parent 41bc7c0 commit 36f0862
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,39 @@ name: CI
on:
push:
branches: [ master ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- if: contains(matrix.os, 'windows')
name: windows - Set bash
run: npm config set script-shell bash
- run: npm ci
# - run: npm run build --if-present
- run: npm test
- if: contains(matrix.os, 'windows')
name: windows - Run tests
run: npm run test:windows
env:
CI: true
- if: contains(matrix.os, 'ubuntu')
name: ubuntu - Run tests
run: npm test
env:
CI: true

0 comments on commit 36f0862

Please sign in to comment.