Skip to content

Commit f89198d

Browse files
authored
split up into crates,reduce features, move to Rust 2024, configure rustfmt and execute (#415)
rustfmt, fix order of keys
1 parent 94d4d41 commit f89198d

File tree

114 files changed

+2598
-2034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+2598
-2034
lines changed

.github/workflows/test.yml

Lines changed: 66 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
RUSTFLAGS: "-Cinstrument-coverage"
3737

3838
- name: Test crate
39-
run: cargo test --verbose
39+
run: cargo test --workspace --verbose
4040
env:
4141
LLVM_PROFILE_FILE: "target/coverage/prof/%p-%m.profraw"
4242
RUSTFLAGS: "-Cinstrument-coverage"
4343

44-
- name: Create coverage report
44+
- name: Create coverage report for core
4545
run: |
4646
grcov \
4747
--source-dir . \
@@ -50,13 +50,74 @@ jobs:
5050
--excl-start 'mod tests \{' \
5151
--ignore 'tests/*' \
5252
-t lcov \
53-
-o lcov.info \
54-
target/coverage/prof
53+
-o lcov_core.info \
54+
crates/bcr-ebill-core/target/coverage/prof
55+
56+
- name: Upload coverage to Codecov for core
57+
uses: codecov/codecov-action@v4
58+
env:
59+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
60+
with:
61+
files: lcov_core.info
62+
fail_ci_if_error: false
63+
64+
- name: Create coverage report for persistence
65+
run: |
66+
grcov \
67+
--source-dir . \
68+
--binary-path target/debug \
69+
--branch \
70+
--excl-start 'mod tests \{' \
71+
--ignore 'tests/*' \
72+
-t lcov \
73+
-o lcov_persistence.info \
74+
crates/bcr-ebill-persistence/target/coverage/prof
75+
76+
- name: Upload coverage to Codecov for persistence
77+
uses: codecov/codecov-action@v4
78+
env:
79+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
80+
with:
81+
files: lcov_persistence.info
82+
fail_ci_if_error: false
83+
84+
85+
- name: Create coverage report for api
86+
run: |
87+
grcov \
88+
--source-dir . \
89+
--binary-path target/debug \
90+
--branch \
91+
--excl-start 'mod tests \{' \
92+
--ignore 'tests/*' \
93+
-t lcov \
94+
-o lcov_api.info \
95+
crates/bcr-ebill-api/target/coverage/prof
96+
97+
- name: Upload coverage to Codecov for API
98+
uses: codecov/codecov-action@v4
99+
env:
100+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
101+
with:
102+
files: lcov_api.info
103+
fail_ci_if_error: false
104+
105+
- name: Create coverage report for web
106+
run: |
107+
grcov \
108+
--source-dir . \
109+
--binary-path target/debug \
110+
--branch \
111+
--excl-start 'mod tests \{' \
112+
--ignore 'tests/*' \
113+
-t lcov \
114+
-o lcov_web.info \
115+
crates/bcr-ebill-web/target/coverage/prof
55116
56117
- name: Upload coverage to Codecov
57118
uses: codecov/codecov-action@v4
58119
env:
59120
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
60121
with:
61-
files: lcov.info
122+
files: lcov_web.info
62123
fail_ci_if_error: false

0 commit comments

Comments
 (0)