-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.37 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
name: ci
on:
push:
branches: [master, next]
pull_request:
branches: [master, next]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: v1.9.0
- name: Run tests (linux/win)
if: matrix.os != 'macos-latest'
run: deno test --unstable --allow-write --allow-read --allow-env --import-map=import_map.json --coverage=coverage/output
- name: Run tests (darwin)
if: matrix.os != 'ubuntu-latest'
run: deno test --unstable --allow-write --allow-read --allow-env --import-map=import_map.json
- name: Generate codecov report (linux/win)
if: matrix.os != 'macos-latest'
run: deno coverage --exclude="(_|.)conf(ig){0,1}\.(ts|js|tsx)" --unstable ./coverage --lcov > ./coverage/lcov.info
- name: Push codecov report (linux)
if: matrix.os == 'ubuntu-latest'
run: bash <(curl -s https://codecov.io/bash) -F color,common,config,log -c
- name: Push codecov report (win)
if: matrix.os == 'windows-latest'
run: |
choco install codecov
codecov.exe --flag common -f coverage/lcov.info