Repository navigation
Make chart legend labels gray #53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Suite | |
| on: [pull_request] | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - run: bun test tests/unit tests/integration | |
| - run: bunx eslint "lib/**/*.js" "app/**/*.{js,jsx}" "components/**/*.{js,jsx}" "tests/**/*.{js,jsx}" | |
| - run: shellcheck ci/process-submissions.sh | |
| e2e-tests: | |
| # Matrix execution: one runner per browser so the suites run in parallel. | |
| # The Playwright webServer builds the static export (bun run build) and | |
| # serves ./out with GitHub Pages semantics (scripts/serve-out.py). | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chromium, firefox, webkit] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - run: bunx playwright install --with-deps ${{ matrix.browser }} | |
| - run: bunx playwright test --project=${{ matrix.browser }} | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: playwright-report-${{ matrix.browser }} | |
| path: playwright-report/ | |
| retention-days: 7 | |
| e2e-basepath: | |
| # Sub-path deployment leg (GitHub Pages project sites): NEXT_PUBLIC_BASE_PATH | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - run: bunx playwright install --with-deps chromium | |
| - run: bunx playwright test --config playwright.basepath.config.js | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: playwright-report-basepath | |
| path: playwright-report/ | |
| retention-days: 7 |