feat: adjust to new debug -I -P
format in
#608
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: | |
pull_request: | |
branches: | |
- main | |
env: | |
# See: https://github.com/actions/setup-node/#readme | |
NODE_VERSION: '18.17' | |
jobs: | |
build: | |
name: Build (${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
# Fails if the generated schema is not under version control | |
- name: Check schema | |
run: yarn generate && git status -s && git diff --exit-code | |
# Linux tests need a DISPLAY | |
- name: Test | |
if: runner.os == 'Linux' | |
run: xvfb-run yarn test-all | |
- name: Test | |
if: runner.os != 'Linux' | |
run: yarn test-all | |
- name: Package | |
run: yarn package |