-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add missing integration stuff (#1)
* add missing CIs * add badges to readme * complete PR template * correct branch name in CI * add quickstart section to readme * complete the missing doc example & crate-level doc * tag unused variables witn an underscore * change doc example return type * add a clippy exception for casts
- Loading branch information
Showing
9 changed files
with
173 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Summary | ||
|
||
... | ||
|
||
## Content | ||
|
||
- Scope: | ||
- [ ] Code: if relevant, add affected target | ||
- [ ] Build script: if relevant, add affected target | ||
- [ ] Documentation | ||
- [ ] CI | ||
- [ ] Repository | ||
- [ ] Other: ... | ||
- Type of change: | ||
- [ ] New feature(s) | ||
- [ ] Fix: if relevant, add issue #... | ||
- [ ] Testing | ||
- [ ] Refactor | ||
- [ ] Revert | ||
- [ ] Chore | ||
- Other: | ||
- [ ] Breaking change | ||
- [ ] New dependency | ||
- Necessary follow-up: | ||
- [ ] Needs documentation | ||
- [ ] Needs testing | ||
- [ ] Other: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: codecov | ||
|
||
on: | ||
push: | ||
branches: [ trunk ] | ||
pull_request: | ||
branches: [ trunk ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# checkout | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
# install requirements | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Install llvm-tools-preview | ||
run: rustup component add llvm-tools-preview | ||
- name: Install grcov | ||
run: cargo install grcov | ||
- uses: Swatinem/rust-cache@v2 | ||
# generate raw coverage data | ||
- name: Build code | ||
run: cargo build --all-features | ||
env: | ||
RUSTFLAGS: "-Cinstrument-coverage" | ||
LLVM_PROFILE_FILE: "cargo-test-%p-%m.profraw" | ||
- name: Run tests | ||
run: cargo test --all-features | ||
env: | ||
RUSTFLAGS: "-Cinstrument-coverage" | ||
LLVM_PROFILE_FILE: "cargo-test-%p-%m.profraw" | ||
# generate lcov file using grcov | ||
- name: Run grcov | ||
run: | | ||
grcov . \ | ||
--binary-path ./target/debug/ \ | ||
-s . \ | ||
-t lcov \ | ||
--branch \ | ||
--ignore-not-existing \ | ||
--ignore '../*' \ | ||
--ignore "/*" \ | ||
-o target/tests.lcov | ||
# upload results | ||
- name: Upload reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: target/tests.lcov | ||
slug: imrn99/integraal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Documentation | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ trunk ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish Crates | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
# Publish | ||
- name: Publish core | ||
run: cargo publish | ||
env: | ||
CIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters