-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (34 loc) · 857 Bytes
/
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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
deno: ["v1.x", "canary"]
os: [ubuntu-latest]
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- name: Run Deno fmt
run: deno fmt --check
- name: Run Tests
run: deno test
- name: Create coverage report
if: matrix.deno == 'v1.x'
run: |
deno test --coverage=.coverage
deno coverage ./.coverage --lcov > coverage.lcov
- name: Upload coverage report
if: matrix.deno == 'v1.x'
uses: codecov/codecov-action@v1
with:
file: ./coverage.lcov