Skip to content

Commit

Permalink
chore(ci): Don't run online tests in CI (#747)
Browse files Browse the repository at this point in the history
* chore(ci): Don't run `online` tests

* no online tests
  • Loading branch information
clabby authored Oct 29, 2024
1 parent b77cbf3 commit 2c47828
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ jobs:
run: cargo generate-lockfile
- name: cargo llvm-cov
run: |
RUST_MIN_STACK=33554432 cargo llvm-cov nextest --locked --workspace --lcov --output-path lcov.info --features test-utils --profile ci && \
RUST_MIN_STACK=33554432 cargo llvm-cov nextest \
--locked \
--workspace \
--lcov \
--output-path lcov.info \
--features test-utils \
--profile ci \
-E '!test(test_online)' && \
mv ./target/nextest/ci/junit.xml ./junit.xml
- name: Record Rust version
run: echo "RUST=$(rustc --version)" >> "$GITHUB_ENV"
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ jobs:
cargo-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
mode: ["online", "offline"]
name: test-${{ matrix.mode }}
name: test
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -27,12 +24,7 @@ jobs:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: cargo test
run: |
if [[ ${{ contains(matrix.mode, 'online') }} == true ]]; then
just test-online
else
just test
fi
run: just test
cargo-lint:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down

0 comments on commit 2c47828

Please sign in to comment.