chore: add error output #7
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Install | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [lts/*] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node version to ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run compile | |
- run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb" | |
shell: bash | |
- name: Test | |
run: npm run test | |
env: | |
DISPLAY: ":99.0" |