Add .node-version
to bin Node dev to v20
#266
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: | |
concurrency: | |
group: test-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
Build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- run: pnpm --filter=avivator build | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: biomejs/setup-biome@v2 | |
- run: biome ci . | |
Test: | |
runs-on: ubuntu-20.04 | |
env: | |
DISPLAY: :0 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- name: Setup xvf (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get install -y xvfb | |
# start xvfb in the background | |
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & | |
- run: pnpm test |