-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (55 loc) · 1.5 KB
/
deno.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: Build
# This workflow will install Deno then run `deno fmt`, `deno lint`, and `deno test`.
# For more information see: https://github.com/denoland/setup-deno
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
merge_group:
schedule:
- cron: "0 14 * * 1" # every monday at 9 in the morning CST
workflow_dispatch:
permissions:
contents: read # Needed to clone the repository
defaults:
run:
shell: bash
env:
CI: true
DENO_VERSION: v2.1.10
jobs:
check:
name: CI
runs-on: ubuntu-latest
permissions:
pull-requests: write # Needed for Biome comments.
steps:
- name: 📚 Git checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🦕 Install Deno
uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4
with:
deno-version: ${{ env.DENO_VERSION }}
- name: 📦 Cache dependencies
run: deno install --allow-scripts
- name: 🕵️ Run linter & verify formatting
run: deno task ci
- name: 🕵️ Typecheck
run: deno task typecheck
- name: 📖 Run documentation tests
run: deno task test:doc
- name: Lint documentation
run: deno task lint:doc
- name: 🧪 Run tests
run: deno task test