-
Notifications
You must be signed in to change notification settings - Fork 43
49 lines (47 loc) · 1.27 KB
/
ci.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
name: ci
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: "Setup deno"
steps:
- uses: actions/checkout@v3
- name: cache deno installation and deno.land dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }}
restore-keys: ${{ runner.os }}-deno-
path: |
/home/runner/.deno
/home/runner/.cache/deno/deps/https/deno.land
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Build Deno Module
run: deno run -A --lock=deno.lock --frozen=false --reload mod.ts
- name: fetch any uncached dependencies
run: |
deno cache --lock=deno.lock --frozen=false --reload=file: ./mod.ts
- run: |
deno test --lock=deno.lock --frozen=false -A .
- run: |
deno bench --lock=deno.lock --frozen=false -A .
- name: check lint
continue-on-error: true
run: |
deno --unstable lint
- name: check formatting
continue-on-error: true
run: |
deno fmt --check