Refactor import hook API to subsume all platform-dependent behavior #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
strategy: | |
matrix: | |
node: | |
- '17' | |
- '16' | |
- '14' | |
- '12' | |
- '11' | |
- '10' | |
- '9' | |
- '8' | |
- '7' | |
- '6' | |
name: Test using node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node ${{ matrix.node }} | |
shell: bash -eo pipefail -l {0} | |
run: | | |
nvm install --default ${{ matrix.node }} | |
if [[ "${{ matrix.node }}" == 0.* ]]; then | |
npm config set strict-ssl false | |
fi | |
dirname "$(nvm which ${{ matrix.node }})" >> "$GITHUB_PATH" | |
- name: Install | |
run: | | |
npm i | |
node -e 'import(".").catch(() => {});' 2>/dev/null || npm i mocha@~7.1.0 | |
node -e 'const a = {}; const b = {...a};' 2>/dev/null || npm i mocha@~3.5.3 tmp@~0.0.33 | |
- name: Test | |
run: npm t |