Update all workflows to use Node 12+ for node-sass and other module compatibility, switch IE to Edge for browser testing (IE web driver no longer pre-installed on runner)

This commit is contained in:
Matt Triff 2021-12-17 16:59:43 -05:00
parent de6c46cdd0
commit e64eface11
5 changed files with 10 additions and 10 deletions

View file

@ -18,14 +18,14 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-latest, macos-latest] os: [windows-latest, macos-latest]
browser: [ie, firefox, safari] browser: [edge, firefox, safari]
exclude: exclude:
# On Windows, run tests with only IE and Edge # On Windows, run tests with Edge only
- os: windows-latest - os: windows-latest
browser: safari browser: safari
# On macOS, run tests with only on safari # On macOS, run tests with only on safari
- os: macos-latest - os: macos-latest
browser: ie browser: edge
- os: macos-latest - os: macos-latest
browser: chrome browser: chrome
# Safari workaround is not working in Catalina # Safari workaround is not working in Catalina
@ -82,8 +82,8 @@ jobs:
- run: echo "$env:GeckoWebDriver" >> $GITHUB_PATH - run: echo "$env:GeckoWebDriver" >> $GITHUB_PATH
if: matrix.browser == 'firefox' && matrix.os == 'windows-latest' if: matrix.browser == 'firefox' && matrix.os == 'windows-latest'
- run: echo "C:\SeleniumWebDrivers\IEDriver" >> $GITHUB_PATH - run: echo "$env:EdgeWebDriver" >> $GITHUB_PATH
if: matrix.browser == 'ie' && matrix.os == 'windows-latest' if: matrix.browser == 'edge' && matrix.os == 'windows-latest'
- run: echo "$env:ChromeWebDriver" >> $GITHUB_PATH - run: echo "$env:ChromeWebDriver" >> $GITHUB_PATH
if: matrix.browser == 'chrome' && matrix.os == 'windows-latest' if: matrix.browser == 'chrome' && matrix.os == 'windows-latest'

View file

@ -14,7 +14,7 @@ jobs:
fetch-depth: 1 fetch-depth: 1
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 10 node-version: 12
- name: Build and run all tests - name: Build and run all tests
run: | run: |
npm ci npm ci

View file

@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 10 node-version: 12
- name: Install dependencies and build - name: Install dependencies and build
run: | run: |

View file

@ -13,7 +13,7 @@ jobs:
fetch-depth: 1 fetch-depth: 1
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 10 node-version: 12
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - run: npm ci
env: env:
@ -32,7 +32,7 @@ jobs:
fetch-depth: 1 fetch-depth: 1
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 10 node-version: 12
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- name: Build - name: Build
run: | run: |

View file

@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 10 node-version: 12
- name: Install dependencies - name: Install dependencies
run: npm install --no-optional --no-audit --ignore-scripts run: npm install --no-optional --no-audit --ignore-scripts