From 72d20772693938cf4364e8e3f06218494f2e0450 Mon Sep 17 00:00:00 2001 From: C02CR2E3ML85 Date: Fri, 2 Oct 2020 10:09:36 -0400 Subject: [PATCH] Actions: Use conditional to set bash.exe shell for Windows --- .github/workflows/build.yml | 8 +++++++- .github/workflows/tests.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e5ce760..10d5ab91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: matrix: os: - macOS-latest - # - windows-2016 + - windows-latest - ubuntu-18.04 steps: @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 46109c65..ecc2d52c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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