-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "🦕 Deno CI"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
defaults:
run:
shell: bash
working-directory: ./
permissions:
contents: read
jobs:
deno:
runs-on: ${{matrix.os}}
# Continue in case the canary run does not succeed
continue-on-error: ${{matrix.canary}}
# env:
# DENO_DIR: .deno-cache
# CACHE_VERSION: ${{secrets.CACHE_VERSION}}
strategy:
matrix:
os: [ubuntu-20.04]
deno: [v1.x]
canary: [false]
include:
- deno: canary
os: ubuntu-20.04
canary: true
steps:
- name: "(env) gitconfig"
run: |
sudo git config --system core.autocrlf false
sudo git config --system core.eol lf
- name: "(cache) setup"
uses: actions/cache@v2
with:
path: ${{env.DENO_DIR}}
key: deno911-${{hashFiles('./{deps.ts,import_map.json}')}}
- name: "(env) checkout"
uses: actions/checkout@v3
- name: "(setup) 🦕 ${{matrix.deno}}"
uses: denoland/setup-deno@main
with:
deno-version: ${{matrix.deno}}
- name: "(cache) reload"
run: deno cache --reload --lock-write deps.ts
- name: "(run) fmt"
run: deno fmt --unstable
- name: "(run) lint"
run: deno lint --unstable --no-bad-types --
- name: "(run) test"
run: deno test -A --unstable --no-check