-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (39 loc) · 1004 Bytes
/
tests.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
50
name: test
on:
push:
branches: dev
pull_request:
branches: dev
types: [opened, synchronize, reopened]
jobs:
test:
name: run tests
strategy:
matrix:
deno-version: ["1.34", 1.x, canary]
include:
- deno-version: canary
coverage: true
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: checkout project
uses: actions/checkout@v3
- name: install deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: run lint
run: deno lint
- name: install binaries
run: deno run -A test/install_binaries.ts
- name: run test with coverage
run: deno task test --coverage
- name: integration test code coverage
if: matrix.coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cov_profile.lcov
fail_ci_if_error: true