Skip to content

Tests and console enhancements #59

Tests and console enhancements

Tests and console enhancements #59

Workflow file for this run

name: Check Vite Build
on:
pull_request:
types: [opened, synchronize, ready_for_review]
branches: [main]
paths:
- 'src/**'
- 'public/**'
- 'index.html'
- 'vite.config.ts'
- 'package.json'
- 'package-lock.json'
- 'tsconfig*.json'
workflow_dispatch: {} # manual run when needed
# auto-cancels older runs if new commits are pushed to the same PR
concurrency:
group: pr-build-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
build:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '22' # https://github.com/actions/node-versions/releases
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run build
run: npm run build