@@ -2,51 +2,41 @@ name: CI
2
2
on : [push, pull_request]
3
3
jobs :
4
4
build :
5
- name : test deno ${{ matrix.deno }} ${{ matrix.os }}
5
+ name : test deno v2.x ${{ matrix.os }}
6
6
runs-on : ${{ matrix.os }}
7
7
timeout-minutes : 5
8
8
strategy :
9
9
matrix :
10
10
os : [ubuntu-latest, windows-latest, macOS-latest]
11
- deno : [v2.x, canary]
12
11
fail-fast : true
13
12
steps :
14
13
- name : Clone repository
15
14
uses : actions/checkout@v4
16
15
- name : Setup deno
17
16
uses : denoland/setup-deno@main
18
17
with :
19
- deno-version : ${{ matrix.deno }}
18
+ deno-version : v2.x
20
19
- name : Check formatting
21
20
if : matrix.os == 'ubuntu-latest'
22
21
run : deno fmt --check
23
22
- name : Check linting
24
23
if : matrix.os == 'ubuntu-latest'
25
24
run : deno lint
26
25
- name : Run tests
27
- run : deno test --coverage=cov
28
- - name : Run tests unstable
29
- run : deno test --unstable
30
- - name : Generate lcov
31
- if : |
32
- matrix.os == 'ubuntu-latest' &&
33
- matrix.deno == 'v2.x'
34
- run : deno coverage --lcov cov > cov.lcov
26
+ run : deno test -A --coverage
35
27
- name : Upload coverage
36
28
if : |
37
- matrix.os == 'ubuntu-latest' &&
38
- matrix.deno == 'v2.x'
29
+ matrix.os == 'ubuntu-latest'
39
30
uses : codecov/codecov-action@v4
40
31
with :
41
32
fail_ci_if_error : true
42
- files : cov. lcov
33
+ files : coverage/ lcov.info
43
34
env :
44
35
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
45
36
- name : Release info
46
37
if : |
47
38
github.repository == 'udibo/http-error' &&
48
39
matrix.os == 'ubuntu-latest' &&
49
- matrix.deno == 'v2.x' &&
50
40
startsWith(github.ref, 'refs/tags/')
51
41
shell : bash
52
42
run : |
0 commit comments