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