Run cargo test and fix it (#3663)

run cargo test and fix it
This commit is contained in:
Dustin J. Mitchell 2024-11-05 08:55:10 -05:00 committed by GitHub
parent 5b1be95f7d
commit 7da23aee1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 1 deletions

View file

@ -94,6 +94,37 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
cargo-test:
runs-on: ubuntu-latest
name: "Cargo Test"
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
# If this version is old enough to cause errors, or older than the
# TaskChampion MSRV, bump it to the MSRV of the currently-required
# TaskChampion package; if necessary, bump that version as well.
toolchain: "1.73.0" # MSRV
override: true
- uses: actions-rs/cargo@v1.0.3
with:
command: test
tests:
needs: coverage
strategy:

View file

@ -943,7 +943,7 @@ mod test {
assert_eq!(t.properties(), vec!["prop".to_string()]);
assert_eq!(
t.iter(),
t.items(),
vec![ffi::PropValuePair {
prop: "prop".into(),
value: "value".into(),