-
Notifications
You must be signed in to change notification settings - Fork 57
44 lines (34 loc) · 1.03 KB
/
ci.yml
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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: test-${{ matrix.os }}-${{ matrix.deno }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Test on the oldest supported, the latest stable, and nightly
deno: [old, stable, canary]
os: [macOS-latest, windows-latest, ubuntu-22.04-xl]
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno == 'old' && '1.28.3' || (matrix.deno == 'stable' && '1.x' || matrix.deno) }}
- run: deno --version
- name: Format
if: runner.os == 'Linux' && matrix.deno == 'stable'
run: deno fmt --check
- name: Lint
if: runner.os == 'Linux' && matrix.deno == 'stable'
run: deno lint
- name: Typecheck
if: runner.os == 'Linux' && matrix.deno == 'stable'
run: deno check deployctl.ts
- name: Run tests
run: deno task test