Skip to content

Commit

Permalink
Run cargo test and fix it (#3663)
Browse files Browse the repository at this point in the history
run cargo test and fix it
  • Loading branch information
djmitche authored Nov 5, 2024
1 parent 5b1be95 commit 7da23ae
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
command: test

tests:
needs: coverage
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/taskchampion-cpp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 7da23ae

Please sign in to comment.