Skip to content

Fix a bug where some optional objectives got lost. #917

Fix a bug where some optional objectives got lost.

Fix a bug where some optional objectives got lost. #917

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
action:
timeout-minutes: 20
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
deployments: write
strategy:
matrix:
node-version: [23]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Use Git Bash
if: matrix.os == 'windows-latest'
run: npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9.*
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Cache Playwright Browsers
id: cache-playwright-browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Run setup
run: pnpm install && pnpm dev:setup
- name: Setup Playwright
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
run: pnpx playwright install --with-deps chromium
- name: Run tests
if: matrix.os != 'windows-latest'
run: pnpm test:ci
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
run: pnpm vitest:run-ci