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
|
2023-05-24 02:53:53 +08:00
|
|
|
uses: denoland/setup-deno@v1
|
2022-10-16 00:38:40 +08:00
|
|
|
with:
|
2024-06-07 14:26:16 +08:00
|
|
|
deno-version: v1.44
|
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
|
|
|
|
|
2022-10-16 00:38:40 +08:00
|
|
|
- name: Run tests
|
2023-05-24 02:53:53 +08:00
|
|
|
run: deno task test --trace-ops
|