-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (35 loc) · 920 Bytes
/
deno.yml
File metadata and controls
45 lines (35 loc) · 920 Bytes
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
name: Deno
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.85.0 # Specify minimum Rust version that supports 2024 edition
- name: Setup Deno
uses: denoland/setup-deno@v2
- name: Verify formatting
if: runner.os == 'Linux'
run: deno fmt --check
- name: Run linter
if: runner.os == 'Linux'
run: deno lint
- name: Run doc linter
if: runner.os == 'Linux'
run: deno doc --lint mod.ts
- name: Run type checker
if: runner.os == 'Linux'
run: deno check .