2022-12-08 01:43:47 +08:00
|
|
|
name: Test
|
2022-10-16 00:38:40 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
pull_request:
|
|
|
|
branches: ["main"]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Setup repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Deno
|
2024-10-10 18:52:28 +08:00
|
|
|
uses: denoland/setup-deno@v2
|
2022-10-16 00:38:40 +08:00
|
|
|
with:
|
2025-01-08 16:38:06 +08:00
|
|
|
deno-version: v2.1
|
2022-10-16 00:38:40 +08:00
|
|
|
|
2022-11-02 00:28:14 +08:00
|
|
|
- name: Run build
|
|
|
|
run: deno task build
|
2022-10-16 00:38:40 +08:00
|
|
|
|
2024-01-25 18:42:36 +08:00
|
|
|
- name: Run type check
|
|
|
|
run: deno task check
|
|
|
|
|
2024-07-30 21:17:34 +08:00
|
|
|
- name: Run lint
|
|
|
|
run: deno task lint
|
|
|
|
|
|
|
|
- name: Run benchmarks
|
|
|
|
run: deno task bench
|
|
|
|
|
2022-10-16 00:38:40 +08:00
|
|
|
- name: Run tests
|
2024-10-10 18:54:24 +08:00
|
|
|
run: deno task test
|