31 lines
581 B
YAML
31 lines
581 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: denoland/setup-deno@v2
|
|
with:
|
|
deno-version: v2.x
|
|
cache: true
|
|
cache-hash: ${{ hashFiles('deno.lock') }}
|
|
|
|
- name: Format check
|
|
run: deno fmt --check
|
|
|
|
- name: Lint
|
|
run: deno lint
|
|
|
|
- name: Type check
|
|
run: deno check jetstream.ts server.ts scripts/*.ts src/migrations/init.ts tests/
|
|
|
|
- name: Test
|
|
run: deno test --allow-all tests/
|