0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/.github/workflows/ci.yml

133 lines
3.1 KiB
YAML
Raw Normal View History

name: ci
on:
push:
2023-01-08 08:27:10 +00:00
branches: [main, next]
pull_request:
2022-05-05 00:35:44 +00:00
branches: ['*']
jobs:
main:
name: 'Main'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-07-07 08:48:36 +00:00
- uses: actions/setup-node@v3
2022-05-05 00:35:44 +00:00
with:
node-version: 18.x
2022-05-05 00:35:44 +00:00
- run: yarn install --frozen-lockfile
- run: npm run format
2022-05-05 00:35:44 +00:00
- run: npm run lint
- run: npm run build
- run: npm test
denoify:
name: "Checking if you've done denoify"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: |
npm run denoify
if [[ `git status --porcelain` ]]; then
exit 1
fi
deno:
name: 'Deno'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: env NAME=Deno deno test --allow-read --allow-env runtime_tests/deno
bun:
name: 'Bun'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-05-17 06:56:09 +00:00
- uses: oven-sh/setup-bun@v1
2023-06-27 09:14:06 +00:00
with:
bun-version: '0.6.9'
2023-05-17 06:56:09 +00:00
- run: bun run test:bun
fastly:
name: 'Fastly Compute@Edge'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-07-07 08:48:36 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:fastly
lagon:
name: 'Lagon'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-07-07 08:48:36 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm i -g @lagon/cli@latest esbuild@latest
- run: npm run test:lagon
node:
name: 'Node.js'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-07-07 08:48:36 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:node
wrangler:
name: 'Cloudflare Workers'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-07-07 08:48:36 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:wrangler
lambda:
name: 'AWS Lambda'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
2023-07-07 08:48:36 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:lambda
lambda-edge:
name: 'Lambda@Edge'
runs-on: ubuntu-latest
steps:
2023-09-05 06:37:04 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:lambda-edge