-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from JMTamayo/feature/v0.5.0
Feature/v0.5.0
- Loading branch information
Showing
10 changed files
with
723 additions
and
169 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 |
---|---|---|
|
@@ -7,35 +7,36 @@ on: | |
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
CI: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
- name: "Setup: Install Rust" | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
components: llvm-tools-preview | ||
|
||
- name: Install cargo-llvm-cov | ||
- name: "Setup: Install cargo-llvm-cov" | ||
uses: taiki-e/[email protected] | ||
with: | ||
tool: cargo-llvm-cov | ||
|
||
- name: Build project | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Verify project formatting | ||
run: cargo fmt --all --check | ||
- name: Format | ||
run: cargo fmt --package redsumer --all --check | ||
|
||
- name: Check for possible errors and coding suggestions | ||
run: cargo clippy --all-features | ||
- name: Lints | ||
run: cargo clippy --package redsumer --all-features --verbose | ||
|
||
- name: Run project tests | ||
run: cargo test --verbose | ||
- name: Unit Tests | ||
run: cargo test --package redsumer --verbose | ||
|
||
- name: Run tests with coverage for all features | ||
- name: Coverage | ||
env: | ||
MIN_LINE_COVERAGE_TARGET: 80 | ||
run: cargo llvm-cov --workspace --all-features --summary-only --fail-under-lines ${{ env.MIN_LINE_COVERAGE_TARGET }} | ||
run: cargo llvm-cov --package redsumer --all-features --summary-only --fail-under-lines ${{ env.MIN_LINE_COVERAGE_TARGET }} |
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
Oops, something went wrong.