ubuntu-latest and macos-latest gha tests (can't get windows gha to work due to TTY issues) #5
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: windows | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Add npm to PATH on Windows for winpty | |
shell: pwsh | |
run: | | |
# Explicitly add npm to PATH | |
$nodePath = (Get-Command npm).Source | |
$nodeDir = Split-Path $nodePath | |
$env:PATH += ";$nodeDir" | |
- name: Workaround to create TTY | |
shell: pwsh | |
run: | | |
npm install | |
npm run build --if-present | |
winpty npm test | |