feat(dashboard): expose --prune-dangling cleanup target (#446) #112
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: dashboard-build | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "dashboard/**" | |
| - ".github/workflows/dashboard-build.yml" | |
| pull_request: | |
| paths: | |
| - "dashboard/**" | |
| - ".github/workflows/dashboard-build.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| defaults: | |
| run: | |
| working-directory: dashboard | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: "1.3.11" | |
| - run: bun install --frozen-lockfile | |
| - name: Typecheck server | |
| working-directory: dashboard/server | |
| run: bunx tsc --noEmit | |
| - name: Typecheck UI | |
| working-directory: dashboard/ui | |
| run: bunx tsc --noEmit | |
| - name: Test | |
| working-directory: dashboard/server | |
| run: bun test | |
| # Delegates the actual matrix to .github/workflows/dashboard-compile.yml | |
| # so this CI workflow and release.yml share the same build steps. Drift | |
| # between them was the root cause of #372. | |
| compile: | |
| needs: test | |
| uses: ./.github/workflows/dashboard-compile.yml |