Skip to content

Commit

Permalink
Revert "ci: Updating cargo test workflow"
Browse files Browse the repository at this point in the history
This reverts commit d1c41a4.
  • Loading branch information
dandxy89 committed Jan 1, 2025
1 parent 1ac1cde commit 7075902
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/cargo_test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
on:
push:
branches:
- "main"
paths:
- "**.rs"
- "**/Cargo.toml"
- "**/Cargo.lock"
pull_request:
types: [assigned, opened, synchronize, reopened]
paths:
- "**.rs"
- "**/Cargo.toml"
- "**/Cargo.lock"
- "**.pest"

name: Cargo Test

env:
CARGO_TERM_COLOR: always
# `insta` will not write new snapshot files
CI: true

concurrency:
Expand All @@ -28,10 +20,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: "${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}"
- uses: actions/cache@v4
with:
path: ~/.cargo/git
key: "${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}"
- uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Collect coverage data
run: cargo llvm-cov nextest --all-features
profile: minimal
toolchain: stable
override: true
- name: Test
run: cargo test --all-features

0 comments on commit 7075902

Please sign in to comment.