websri/.github/workflows/test.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-03 03:14:59 +09:00
name: test
on: push
jobs:
2024-09-03 09:50:43 +09:00
node:
2024-09-03 03:14:59 +09:00
name: Node.js v${{ matrix.node-version }}
strategy:
matrix:
node-version:
- 20
- 22
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
2024-09-03 04:29:48 +00:00
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
2024-09-03 03:14:59 +09:00
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
2024-09-03 09:50:43 +09:00
deno:
name: Deno
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
2024-09-03 04:29:48 +00:00
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
2024-09-03 09:50:43 +09:00
- uses: denoland/setup-deno@v1
with:
deno-version: latest
- run: deno task test
working-directory: runtime/deno
bun:
name: Bun
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
2024-09-03 04:29:48 +00:00
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
2024-09-03 09:50:43 +09:00
with:
bun-version: latest
- run: bun test
working-directory: runtime/bun