-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 963 Bytes
/
test.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
name: Test
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Check format
run: |
deno fmt --check
deno lint
- name: Generate coverage
run: |
deno task coverage
deno coverage --lcov --output=coverage/cov.lcov coverage/cov_profile/
- uses: codecov/codecov-action@v4
with:
files: ./coverage/cov.lcov
name: mini-fn
verbose: true
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Dry run publish
run: deno publish --dry-run