Skip to content

Commit

Permalink
Use group-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 23, 2024
1 parent 9d224f7 commit d1bb7a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

env:
RUST_BACKTRACE: 1
GROUP_RUNNER: target.'cfg(all())'.runner = 'group-runner'

steps:
- name: Log github refs
Expand Down Expand Up @@ -63,21 +64,25 @@ jobs:
cargo install cargo-license || true
cargo install cargo-sort || true
cargo install cargo-udeps --locked || true
cargo install group-runner || true
- name: Enable verbose logging
if: ${{ runner.debug == 1 }}
run: echo 'VERBOSE=1' >> "$GITHUB_ENV"

- name: Build
run: cargo test --no-run

- name: Test
run: cargo test -- --nocapture
run: cargo test --config "$GROUP_RUNNER" -- --nocapture
env:
GIT_LFS_SKIP_SMUDGE: 1

- name: Test with token
run: |
export GITHUB_TOKEN_PATH="$(mktemp)"
echo '${{ secrets.GITHUB_TOKEN }}' > "$GITHUB_TOKEN_PATH"
cargo test \
cargo test --config "$GROUP_RUNNER" \
--test dogfood \
--test rustsec_advisories \
--test rustsec_issues \
Expand Down

0 comments on commit d1bb7a0

Please sign in to comment.