Skip to content

Replace dependency npm-run-all with npm-run-all2 ^5.0.0 #2059

Replace dependency npm-run-all with npm-run-all2 ^5.0.0

Replace dependency npm-run-all with npm-run-all2 ^5.0.0 #2059

Workflow file for this run

name: test
on:
- push
- pull_request
jobs:
mocha:
name: mocha
strategy:
fail-fast: false
matrix:
node:
- 14
- 16
- 18
- 20
- lts/*
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
karma:
name: karma with Chrome and Firefox
strategy:
fail-fast: false
matrix:
node:
- 14
- 18
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm add -D karma-chrome-launcher karma-firefox-launcher
- run: npm karma start --single-run --browsers ChromeHeadless,FirefoxHeadless
karma-ie:
name: karma with IE11
strategy:
fail-fast: false
matrix:
node:
- 14
- 18
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm add -D karma-ie-launcher
- run: npm karma start --single-run --browsers IE
karma-ios:
name: karma on iOS
strategy:
fail-fast: false
matrix:
node:
- 14
- 18
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: xcrun simctl list
- run: xcrun simctl list -j
- run: |
xcrun simctl list -j | jq '.devices[][] | select(.isAvailable == true) | { (.name): .udid }' | jq -s add
- run: |
xcrun simctl list -j | jq '.devices[][] | select(.isAvailable == true) | { (.name): .udid }' | jq -s add | jq -r '.["iPhone 11"]' | tee udid
- run: xcrun simctl boot "$(cat udid)"
- run: xcrun simctl openurl "$(cat udid)" 'http://127.0.0.1:9876' &
- run: npm karma start --single-run --no-browsers