feat(catalog-v2): version-anchored license links #5772
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: Server Unit Tests | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| changes: | |
| name: Check changed files | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| outputs: | |
| server: ${{ steps.filter.outputs.server }} | |
| steps: | |
| - name: Check changed files | |
| id: filter | |
| uses: dorny/paths-filter@6852f92c20ea7fd3b0c25de3b5112db3a98da050 | |
| with: | |
| filters: | | |
| server: | |
| - "server/**" | |
| - "shared/**" | |
| - "package.json" | |
| - "bun.lock" | |
| - ".github/workflows/server-unit-tests.yml" | |
| unit-tests: | |
| name: Unit Tests | |
| needs: changes | |
| if: needs.changes.outputs.server == 'true' | |
| # 8 vcpus: the sharded suite is CPU-bound on the server import graph | |
| # (~2s per shard, 8 shards); 4 vcpus put the test step at ~11s. | |
| runs-on: blacksmith-8vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run unit tests | |
| run: bun run test:unit | |
| working-directory: server |