Fix snapshot merge never matching gh-pages versioned dirs #504
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| # Allows other automation (e.g. docs.yaml's snapshot job) to explicitly | |
| # trigger a CI run for a specific branch/SHA. Required because events | |
| # authored by the default GITHUB_TOKEN (e.g. opening a PR from a workflow) | |
| # do NOT cascade into new workflow runs — workflow_dispatch is exempted | |
| # from that restriction, so it's the supported way to get a fresh run | |
| # whose check results attach to that commit for required-status-check | |
| # evaluation. | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Test · Format · Lint · Dead code | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run tests | |
| run: bun test | |
| - name: Post LCOV coverage comment | |
| if: always() && github.event_name == 'pull_request' | |
| uses: romeovs/lcov-reporter-action@87a815f34ec27a5826abba44ce09bbc688da58fd # v0.4.0 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| lcov-file: coverage/lcov.info | |
| continue-on-error: true | |
| - name: Check formatting (oxfmt) | |
| run: bun run format:check | |
| - name: Lint (oxlint) | |
| run: bun run lint | |
| - name: Dead code detection (knip) | |
| run: bun run knip | |
| test-bats: | |
| name: Shell tests (bats) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Bats | |
| uses: bats-core/bats-action@77d6fb60505b4d0d1d73e48bd035b55074bbfb43 # v4.0.0 | |
| with: | |
| support-install: false | |
| assert-install: false | |
| detik-install: false | |
| file-install: false | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run install.sh shell tests | |
| shell: bash | |
| run: bats install.test.bats |