2021-12-29 21:58:51 +00:00
|
|
|
name: ci
|
|
|
|
on:
|
|
|
|
push:
|
2023-01-08 08:27:10 +00:00
|
|
|
branches: [main, next]
|
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:
|
2023-08-28 12:52:25 +00:00
|
|
|
main:
|
2023-03-06 12:12:22 +00:00
|
|
|
name: 'Main'
|
2021-12-29 21:58:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2022-05-05 00:35:44 +00:00
|
|
|
with:
|
2023-10-20 06:21:38 +00:00
|
|
|
node-version: 20.x
|
2022-05-05 00:35:44 +00:00
|
|
|
- run: yarn install --frozen-lockfile
|
2023-08-15 13:34:45 +00:00
|
|
|
- run: npm run format
|
2022-05-05 00:35:44 +00:00
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run build
|
2023-09-08 09:38:54 +00:00
|
|
|
- run: NODE_OPTIONS="--no-warnings" npm test
|
2022-07-12 23:25:36 +00:00
|
|
|
|
2023-08-28 12:52:25 +00:00
|
|
|
denoify:
|
|
|
|
name: "Checking if you've done denoify"
|
|
|
|
runs-on: ubuntu-latest
|
2023-09-05 06:41:41 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-08-28 12:52:25 +00:00
|
|
|
steps:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-08-28 12:52:25 +00:00
|
|
|
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
|
|
|
|
|
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:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-12 23:25:36 +00:00
|
|
|
- uses: denoland/setup-deno@v1
|
|
|
|
with:
|
|
|
|
deno-version: v1.x
|
2023-05-02 12:16:17 +00:00
|
|
|
- run: env NAME=Deno deno test --allow-read --allow-env runtime_tests/deno
|
2023-11-08 12:07:35 +00:00
|
|
|
- run: deno test -c runtime_tests/deno-jsx/deno.precompile.json runtime_tests/deno-jsx
|
|
|
|
- run: deno test -c runtime_tests/deno-jsx/deno.react-jsx.json runtime_tests/deno-jsx
|
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:
|
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:
|
2023-10-20 09:18:05 +00:00
|
|
|
bun-version: '1.0.6'
|
2023-05-17 06:56:09 +00:00
|
|
|
- run: bun 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:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-01-07 00:17:41 +00:00
|
|
|
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:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2022-12-24 16:42:59 +00:00
|
|
|
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:
|
2023-10-20 06:21:38 +00:00
|
|
|
name: 'Node.js v${{ matrix.node }}'
|
2023-01-07 09:50:45 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-10-20 06:21:38 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node: ['18.18.2', '20.x']
|
2023-01-07 09:50:45 +00:00
|
|
|
steps:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-01-07 09:50:45 +00:00
|
|
|
with:
|
2023-11-01 15:12:49 +00:00
|
|
|
node-version: ${{ matrix.node }}
|
2023-01-07 09:50:45 +00:00
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run test:node
|
2023-03-06 12:12:22 +00:00
|
|
|
|
|
|
|
wrangler:
|
|
|
|
name: 'Cloudflare Workers'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-03-06 12:12:22 +00:00
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run test:wrangler
|
2023-03-17 07:33:54 +00:00
|
|
|
|
|
|
|
lambda:
|
|
|
|
name: 'AWS Lambda'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-03-17 07:33:54 +00:00
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run test:lambda
|
2023-07-07 08:41:33 +00:00
|
|
|
|
|
|
|
lambda-edge:
|
|
|
|
name: 'Lambda@Edge'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 06:37:04 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-01 15:12:49 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-07-07 08:41:33 +00:00
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: npm run build
|
2023-08-28 12:52:25 +00:00
|
|
|
- run: npm run test:lambda-edge
|