We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa532a9 commit eba8a23Copy full SHA for eba8a23
2 files changed
.github/workflows/test.yaml
@@ -37,3 +37,30 @@ jobs:
37
38
- name: cargo machete
39
run: cargo machete
40
+
41
+ test:
42
+ runs-on: ubuntu-latest
43
+ steps:
44
+ - name: checkout
45
+ uses: actions/checkout@v4
46
47
+ - name: cache rust deps
48
+ uses: Swatinem/rust-cache@v2
49
50
+ - name: install cargo-llvm-cov
51
+ uses: taiki-e/install-action@cargo-llvm-cov
52
53
+ - name: fetch deps
54
+ run: cargo fetch
55
56
+ - name: build tests
57
+ run: cargo test --no-run
58
59
+ - name: run tests
60
+ run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
61
62
+ - name: upload to codecov
63
+ uses: codecov/codecov-action@v5
64
+ with:
65
+ token: ${{ secrets.CODECOV_TOKEN }}
66
+ files: lcov.info
tests/main.rs
@@ -0,0 +1,4 @@
1
+#[test]
2
+fn test_hello_world() {
3
+ assert_eq!(1, 1)
4
+}
0 commit comments