-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: git-like -C argument, integration tests (#103)
Added an argument almost equivalent to Git's "-C", mainly for the purpose of making integration tests isolated. This feature depends on cocogitto/cocogitto#428, and therefore v6.2.0, as the commit will otherwise still be made in the current working directory. This commit reduces code test coverage as many skips were removed.
- Loading branch information
1 parent
c6bc908
commit 07f0226
Showing
9 changed files
with
655 additions
and
151 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 |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
- main | ||
pull_request: | ||
|
||
env: | ||
ACT: false | ||
|
||
jobs: | ||
test: | ||
name: cargo test | ||
|
@@ -25,6 +28,7 @@ jobs: | |
~/.cargo/git/db/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: git config --global user.name "tests" && git config --global user.email "[email protected]" | ||
- run: cargo test --all-features | ||
|
||
coverage: | ||
|
@@ -40,11 +44,15 @@ jobs: | |
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- run: cargo install cargo-tarpaulin | ||
- run: cargo tarpaulin --out Xml | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: taiki-e/install-action@cargo-tarpaulin | ||
- run: git config --global user.name "tests" && git config --global user.email "[email protected]" | ||
- run: cargo tarpaulin --out Xml --engine llvm | ||
- uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
dry_run: ${{ env.ACT }} | ||
|
||
lints: | ||
name: cargo clippy & fmt | ||
|
@@ -60,7 +68,6 @@ jobs: | |
~/.cargo/git/db/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
- run: rustup component add rustfmt clippy | ||
- run: cargo clippy --all-targets --all-features -- -D warnings | ||
- run: cargo fmt --all -- --check |
Oops, something went wrong.