fix npm on windows #86
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: tests | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
- if: runner.os == 'Windows' | |
# temporary, see https://github.com/nodejs/node/issues/52682 | |
shell: bash | |
run: | | |
npm install -g npm | |
- name: run test | |
shell: bash | |
run: | | |
npm ci | |
npx playwright install --with-deps | |
npm install -g npm | |
npm install -g tsx | |
npm -v | |
node -v | |
node -e "console.log(globalThis)" | |
node -e "console.log(await import('tsx'))" | |
npm run test:all |