mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 10:08:58 +01:00
ci: Use latest version of Bun and Deno for CI (#3554)
* workflow: update setup-bun to v2 * workflow: use bun 1.1.33 * workflow: use deno 2.x
This commit is contained in:
parent
01277aa389
commit
08e2912eb8
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -45,9 +45,9 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: '1.1.16'
|
||||
bun-version: '1.1.33'
|
||||
- run: bun install
|
||||
- run: bun run format
|
||||
- run: bun run lint
|
||||
@ -66,7 +66,7 @@ jobs:
|
||||
- uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: v2.x
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bunx jsr publish --dry-run
|
||||
|
||||
deno:
|
||||
@ -90,9 +90,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: '1.1.16'
|
||||
bun-version: '1.1.33'
|
||||
- run: bun run test:bun
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@ -103,7 +103,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install
|
||||
- run: bun run build
|
||||
- run: bun run test:fastly
|
||||
@ -123,7 +123,7 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install
|
||||
- run: bun run build
|
||||
- run: bun run test:node
|
||||
@ -141,7 +141,7 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install
|
||||
- run: bun run build
|
||||
- run: bun run test:workerd
|
||||
@ -155,7 +155,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install
|
||||
- run: bun run build
|
||||
- run: bun run test:lambda
|
||||
@ -169,7 +169,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install --frozen-lockfile
|
||||
- run: bun run build
|
||||
- run: bun run test:lambda-edge
|
||||
@ -183,7 +183,7 @@ jobs:
|
||||
if: github.event_name == 'pull_request'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install
|
||||
- uses: actions/cache/restore@v4
|
||||
with:
|
||||
@ -210,7 +210,7 @@ jobs:
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun install
|
||||
- run: bun scripts/generate-app.ts
|
||||
working-directory: perf-measures/type-check
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -18,9 +18,9 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install deno
|
||||
uses: denoland/setup-deno@v1
|
||||
uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: v1.x
|
||||
deno-version: v2.x
|
||||
|
||||
- name: Publish to JSR
|
||||
run: deno run -A jsr:@david/publish-on-tag@0.1.3
|
||||
run: deno run -A jsr:@david/publish-on-tag@0.1.4
|
||||
|
Loading…
Reference in New Issue
Block a user