mirror of https://github.com/buster-so/buster.git
32 lines
558 B
YAML
32 lines
558 B
YAML
name: Web Unit Tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "web/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run-tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: web
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: "pnpm"
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run Jest tests
|
|
run: pnpm run test
|