-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split test and coverage, deps (#107)
Splits the test and coverage steps into seperate jobs to parallelize them for faster workflow executions. Also upgraded the versions of all used actions.
- Loading branch information
1 parent
f291e03
commit a347ea4
Showing
3 changed files
with
24 additions
and
10 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
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 |
---|---|---|
|
@@ -12,11 +12,11 @@ on: | |
|
||
jobs: | ||
test: | ||
name: cargo test, tarpaulin & codecov | ||
name: cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/cache@v4.0.2 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions/cache@v4.1.2 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
|
@@ -26,18 +26,32 @@ jobs: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo test --all-features | ||
|
||
coverage: | ||
name: cargo tarpaulin & codecov | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- run: cargo install cargo-tarpaulin | ||
- run: cargo tarpaulin --out Xml | ||
- uses: codecov/codecov-action@v4 | ||
- uses: codecov/codecov-action@v4.6.0 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
lints: | ||
name: cargo clippy & fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/cache@v4.0.2 | ||
- uses: actions/checkout@v4.2.2 | ||
- uses: actions/cache@v4.1.2 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
|
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