mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Refactor workflow rust: Extract test into script
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9bf1ce3000
commit
5302240829
2 changed files with 23 additions and 10 deletions
11
.github/workflows/rust.yml
vendored
11
.github/workflows/rust.yml
vendored
|
@ -98,16 +98,7 @@ jobs:
|
|||
|
||||
- name: Test (Unix)
|
||||
if: ${{ matrix.test && matrix.os != 'windows-latest' }}
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
for bin in $bins; do ./${{ matrix.output }} binstall --log-level debug --no-confirm $bin; done
|
||||
for bin in $test_bins; do $HOME/.cargo/bin/$bin --version; done
|
||||
cargo binstall --help >/dev/null
|
||||
./${{ matrix.output }} binstall --log-level debug --manifest-path . --no-confirm cargo-binstall
|
||||
cargo binstall --help >/dev/null
|
||||
env:
|
||||
bins: cargo-deb cargo-llvm-cov cargo-binstall
|
||||
test_bins: cargo-deb cargo-llvm-cov
|
||||
run: ./ci-scripts/run_tests_unix.sh ${{ matrix.output }}
|
||||
|
||||
- name: Test (Windows)
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue