33 lines
521 B
YAML
33 lines
521 B
YAML
name: Lint & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
main:
|
|
name: Lint and test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: nekowinston/setup-deno@v1
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "lts/*"
|
|
|
|
- name: Check
|
|
run: deno check **/*.ts
|
|
|
|
- name: Lint
|
|
run: deno lint --compact
|
|
|
|
- name: Test
|
|
run: deno test --doc
|
|
|
|
- name: Test Deno dnt
|
|
run: deno task build:npm
|