chore(deps): upgrade #219
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: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| test: | |
| name: Test · Format · Lint · Dead code | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 # v2.1.2 | |
| 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@v0.3.1 | |
| 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 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install bats-core | |
| # bats is not pre-installed on GitHub-hosted Ubuntu runners. | |
| run: npm install -g bats | |
| - name: Run install.sh shell tests | |
| run: bats install.test.bats |