Commit 643ca35 1 parent 0e03dc2 commit 643ca35 Copy full SHA for 643ca35
File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Run test suite
2
- on : pull_request
2
+ on :
3
+ pull_request :
4
+ push :
5
+ branches :
6
+ - master
3
7
4
8
jobs :
5
9
# Label of the container job
38
42
profile : minimal
39
43
toolchain : stable
40
44
override : true
45
+ components : llvm-tools-preview
41
46
42
47
- name : Install sqlx-cli
43
48
uses : actions-rs/cargo@v1
@@ -52,11 +57,26 @@ jobs:
52
57
args : migrate run
53
58
env :
54
59
DATABASE_URL : postgresql://pointercrate:postgres@localhost/postgres
55
- RUST_BACKTRACE : 1
56
60
57
61
- name : Run tests
58
62
uses : actions-rs/cargo@v1
59
63
with :
60
64
command : test
61
65
env :
62
66
DATABASE_URL : postgresql://pointercrate:postgres@localhost/postgres
67
+ RUST_BACKTRACE : 1
68
+ RUSTFLAGS : -Cinstrument-coverage
69
+
70
+ - name : Install grcov
71
+ uses : actions-rs/cargo@v1
72
+ with :
73
+ command : install
74
+ args : grcov
75
+
76
+ - name : Generate coverage report
77
+ run : grcov . -s . --binary-path ./target/debug/ -t lcov --ignore-not-existing -o ./target/debug/coverage.lcov --ignore "*/tests/*" --keep-only "pointercrate-*"
78
+
79
+ - name : Upload coverage report
80
+ uses : codecov/codecov-action@v3
81
+ with :
82
+ files : ./target/debug/coverage.lcov
You can’t perform that action at this time.
0 commit comments