2021-12-29 21:58:51 +00:00
|
|
|
name: ci
|
|
|
|
on:
|
|
|
|
push:
|
2022-07-20 23:48:13 +00:00
|
|
|
branches: [main]
|
2021-12-29 21:58:51 +00:00
|
|
|
pull_request:
|
2022-05-05 00:35:44 +00:00
|
|
|
branches: ['*']
|
2021-12-29 21:58:51 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
2023-01-07 00:55:42 +00:00
|
|
|
name: 'Cloudflare Workers (main)'
|
2021-12-29 21:58:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-05-05 00:35:44 +00:00
|
|
|
- uses: actions/checkout@v2
|
2023-01-07 00:55:42 +00:00
|
|
|
- uses: actions/setup-node@v2
|
2022-05-05 00:35:44 +00:00
|
|
|
with:
|
2023-01-07 00:55:42 +00:00
|
|
|
node-version: 18.x
|
2022-05-05 00:35:44 +00:00
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm test
|
2022-07-12 23:25:36 +00:00
|
|
|
|
|
|
|
deno:
|
2023-01-07 00:55:42 +00:00
|
|
|
name: 'Deno'
|
2022-07-12 23:25:36 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: denoland/setup-deno@v1
|
|
|
|
with:
|
|
|
|
deno-version: v1.x
|
2023-01-07 00:55:42 +00:00
|
|
|
- run: deno test --allow-read test_deno
|
2022-07-13 12:24:08 +00:00
|
|
|
|
|
|
|
bun:
|
2023-01-07 00:55:42 +00:00
|
|
|
name: 'Bun'
|
2022-07-13 12:24:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2023-01-07 00:55:42 +00:00
|
|
|
node-version: 18.x
|
2022-07-13 12:24:08 +00:00
|
|
|
- run: curl -fsSL https://bun.sh/install | bash
|
|
|
|
- run: echo "${HOME}/.bun/bin" >> $GITHUB_PATH
|
|
|
|
- run: npm run test:bun
|
2022-12-24 16:42:59 +00:00
|
|
|
|
2023-01-07 00:17:41 +00:00
|
|
|
fastly:
|
2023-01-07 00:55:42 +00:00
|
|
|
name: 'Fastly Compute@Edge'
|
2023-01-07 00:17:41 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run test:fastly
|
|
|
|
|
2022-12-24 16:42:59 +00:00
|
|
|
lagon:
|
2023-01-07 00:55:42 +00:00
|
|
|
name: 'Lagon'
|
2022-12-24 16:42:59 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
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
|
2023-01-07 09:50:45 +00:00
|
|
|
|
|
|
|
node:
|
|
|
|
name: 'Node.js'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run test:node
|