Fix auth check #1999
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Windows throws false positives with linting because of CRLF | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
- name: Run tests (ubuntu) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
export DISPLAY=:99 | |
xvfb-run -n 99 -s '-screen 0 1024x768x24' npm run test | |
pkill Xvfb | |
- name: Run tests (macos, windows) | |
if: ${{ !(matrix.os == 'ubuntu-latest') }} | |
run: npm run test |