name: Test Ace Diff on: workflow_dispatch: push: pull_request: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 24 - name: Install pnpm uses: pnpm/action-setup@v4 with: version: 10 - name: Install dependencies run: | pnpm install pnpm add @parcel/rust-linux-x64-gnu pnpm add @parcel/watcher-linux-x64-glibc pnpm add @swc/core-linux-x64-gnu pnpm add lightningcss-linux-x64-gnu - name: Install Cypress binary run: pnpm exec cypress install - name: Lint run: | pnpm exec eslint src --max-warnings 0 pnpm exec prettier --check . - name: Type Check run: pnpm run typecheck - name: Build run: pnpm run build - name: Check Types (attw) run: pnpm run attw - name: Run static server in the background run: pnpm run serve & - name: Wait for server run: sleep 5 - name: Run tests run: pnpm test - name: Upload Cypress artifacts on failure uses: actions/upload-artifact@v4 if: failure() with: name: cypress-artifacts path: | cypress/screenshots cypress/videos retention-days: 7