-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (32 loc) · 993 Bytes
/
test.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
name: Test Deno Module
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.15.2, canary]
steps:
- name: Git sources
uses: actions/checkout@v2
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/[email protected]
with:
deno-version: ${{ matrix.deno-version }}
- name: Deno Check Fmt
run: deno fmt --check
- name: Deno Lint
run: deno lint
- name: Build Deno Module
run: deno bundle --reload mod.ts > index.js
- name: Test Deno Module
run: deno test --coverage=coverage
# TODO: coverage broken see https://github.com/denoland/deno/issues/11875
# - name: Generate lcov
# run: deno coverage coverage --lcov > coverage/lcov.info
# - name: Assert coverage is good
# uses: VeryGoodOpenSource/[email protected]