Skip to content

Merge pull request #83 from MasatoMakino/fix-workflow #53

Merge pull request #83 from MasatoMakino/fix-workflow

Merge pull request #83 from MasatoMakino/fix-workflow #53

Workflow file for this run

name: Build test
on:
push:
branches: [main]
paths:
- "src/**"
- "__test__/**"
- ".github/**"
- "package.json"
- "tsconfig*.json"
pull_request:
branches: [main]
paths:
- "src/**"
- "__test__/**"
- ".github/**"
- "package.json"
- "tsconfig*.json"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: sudo apt-get update
- name: Install dependencies for headless-gl
run: sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
- run: npm ci
- run: npm run buildTS
- run: xvfb-run --auto-servernum npx vitest --run