Skip to content

Commit

Permalink
test: improve coverage perf (#3042)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Nov 16, 2024
1 parent 758d80d commit 12638fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
NPM_CONFIG_FUND: false

jobs:
nightly:
autofix:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
DRY_RUN: ${{ startsWith(github.event.ref, 'refs/tags/v') && '0' || '1' }}
RUST_BACKTRACE: 1

jobs:
build-tarball:
Expand Down Expand Up @@ -57,10 +58,6 @@ jobs:
name: macos-arm64
target: aarch64-apple-darwin
runs-on: macos-14
# - os: windows
# name: windows-x64
# target: x86_64-pc-windows-gnu
# runs-on: ubuntu-latest
steps:
- if: matrix.os == 'macos'
uses: apple-actions/import-codesign-certs@v3
Expand Down Expand Up @@ -113,6 +110,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup target add ${{matrix.target}}
- uses: Swatinem/rust-cache@v2
with:
key: ${{matrix.arch}}
- name: cache crates
id: cache-crates
uses: actions/cache@v4
Expand Down Expand Up @@ -162,7 +162,6 @@ jobs:
uses: nick-fields/retry@v3
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUST_BACKTRACE: 1
TEST_TRANCHE: ${{matrix.tranche}}
TEST_TRANCHE_COUNT: 4
TEST_ALL: 1
Expand Down
5 changes: 4 additions & 1 deletion tasks/test/coverage
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export PATH="${CARGO_TARGET_DIR}/debug:$PATH"
echo "::group::Build w/ coverage"
cargo build -q --all-features
echo "::endgroup::"
./e2e/run_all_tests
echo "::group::mise install"
mise install
echo "::endgroup::"
mise x -- ./e2e/run_all_tests
if [[ "${TEST_TRANCHE:-}" == 0 ]]; then
echo "::group::Implode"
mise implode
Expand Down

0 comments on commit 12638fe

Please sign in to comment.