Skip to content

Commit

Permalink
Actions: Use conditional to set bash.exe shell for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
C02CR2E3ML85 committed Oct 2, 2020
1 parent 9c947a5 commit 72d2077
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os:
- macOS-latest
# - windows-2016
- windows-latest
- ubuntu-18.04

steps:
Expand All @@ -28,6 +28,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Set Windows shell
if: contains(matrix.os, 'windows')
run: |
npm config set script-shell "C:\\Program Files (x86)\\git\\bin\\bash.exe"
- name: Install and build
run: |
npm ci
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os:
- macOS-latest
#- windows-2016 #until we can figure out cross-platform command line
- windows-latest
- ubuntu-18.04

steps:
Expand All @@ -28,6 +28,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Set Windows shell
if: contains(matrix.os, 'windows')
run: |
npm config set script-shell "C:\\Program Files (x86)\\git\\bin\\bash.exe"
- name: Install, compile and test
run: |
npm install
Expand Down

0 comments on commit 72d2077

Please sign in to comment.