-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 855 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
name: ci
on:
- push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: denoland/setup-deno@main
with:
deno-version: "1.41.2"
- name: Run fmt
run: |
deno fmt --check
- name: Run lint
run: |
deno lint
- name: Run diff README
shell: bash
run: |
diff README.md <(deno run --allow-run --allow-read=examples scripts/readme.ts)
- name: Run tests
run: |
deno test -A --coverage=coverage
- name: Create coverage report
run: |
deno coverage ./coverage --lcov > coverage.lcov
- name: Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.lcov
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}