2022-12-07 17:43:47 +00:00
|
|
|
name: Test
|
2022-10-15 16:38:40 +00: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-23 18:53:53 +00:00
|
|
|
uses: denoland/setup-deno@v1
|
2022-10-15 16:38:40 +00:00
|
|
|
with:
|
2023-07-15 12:26:18 +00:00
|
|
|
deno-version: v1.35
|
2022-10-15 16:38:40 +00:00
|
|
|
|
2022-11-01 16:28:14 +00:00
|
|
|
- name: Run build
|
|
|
|
run: deno task build
|
2022-10-15 16:38:40 +00:00
|
|
|
|
2023-01-15 10:33:09 +00:00
|
|
|
- name: Run static type check
|
|
|
|
run: deno task check
|
|
|
|
|
2022-10-15 16:38:40 +00:00
|
|
|
- name: Run tests
|
2023-05-23 18:53:53 +00:00
|
|
|
run: deno task test --trace-ops
|