Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions .github/workflows/ci-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,18 @@ jobs:
working-directory: web
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
- run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
id: bun-cache
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.bun-cache.outputs.dir }}
path: ~/.bun/install/cache
# Separate key: lint pulls bun@canary into the cache, keep it out of the shared one
key: ${{ runner.os }}-bun-web-checks-${{ hashFiles('web/bun.lock') }}
- run: bun install --frozen-lockfile
- run: bun run check
- run: bun run typecheck && bun run format:check && bun run lint -- --max-warnings 0
- run: bun run check && bun run typecheck && bun run format:check && bun run lint -- --max-warnings 0
- run: bun test

web-build:
Expand All @@ -61,18 +59,17 @@ jobs:
working-directory: web
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
id: bun-cache
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.bun-cache.outputs.dir }}
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-web-${{ hashFiles('web/bun.lock') }}
- run: bun install --frozen-lockfile
- run: bun run build && bun run test:production
Expand All @@ -85,18 +82,17 @@ jobs:
working-directory: web
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
id: bun-cache
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.bun-cache.outputs.dir }}
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-web-${{ hashFiles('web/bun.lock') }}
- run: bun install --frozen-lockfile
- run: bun run build:vercel && bun run test:vercel
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
- run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
id: bun-cache
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.bun-cache.outputs.dir }}
path: ~/.bun/install/cache
# Separate key: lint pulls bun@canary into the cache, keep it out of the shared one
key: ${{ runner.os }}-bun-checks-${{ hashFiles('bun.lock') }}
- run: bun install --frozen-lockfile
Expand All @@ -59,15 +58,14 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
- run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
id: bun-cache
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.bun-cache.outputs.dir }}
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
- run: bun install --frozen-lockfile
- run: bun test --parallel ./test
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
Expand All @@ -27,23 +29,21 @@ jobs:
echo "Tag $GITHUB_REF_NAME does not match package.json version $package_version" >&2
exit 1
}
- run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
id: bun-cache
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.bun-cache.outputs.dir }}
path: ~/.bun/install/cache
# Shares the checks cache key: this job also runs lint (bun@canary)
key: ${{ runner.os }}-bun-checks-${{ hashFiles('bun.lock') }}
- run: bun install --frozen-lockfile
- run: bun run check
- run: bun run lint -- --max-warnings 0
- run: bun run check && bun run lint -- --max-warnings 0
- run: bun test --parallel ./test

package:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.4.5"
Expand Down
Loading