forked from chaspy/hanakintaro
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 886 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
name: test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 300
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: denoland/setup-deno@v1
with:
deno-version: '1.41.0'
- name: Run fmt
run: |
deno fmt --check .
- name: Run lint
run: |
deno lint .
- name: deno task test
run: |
deno task test --coverage=coverage
deno coverage coverage --lcov --output=cov_profile.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./cov_profile.lcov
fail_ci_if_error: false
verbose: true