-
Notifications
You must be signed in to change notification settings - Fork 235
41 lines (32 loc) · 902 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
name: ci
on: [push, pull_request]
jobs:
oak:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["v1.x", canary]
steps:
- name: clone repository
uses: actions/checkout@v4
- name: install deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.version }}
- name: check format
run: deno fmt --check
- name: check linting
run: deno lint
- name: run tests generating coverage
run: deno task test:coverage
- name: upload test results
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: generate lcov
run: deno task coverage > cov.lcov
- name: upload coverage
uses: codecov/codecov-action@v4
with:
files: ./cov.lcov
token: ${{ secrets.CODECOV_TOKEN }}