mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
parent
5b1be95f7d
commit
7da23aee1c
2 changed files with 32 additions and 1 deletions
31
.github/workflows/tests.yaml
vendored
31
.github/workflows/tests.yaml
vendored
|
@ -94,6 +94,37 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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:
|
tests:
|
||||||
needs: coverage
|
needs: coverage
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -943,7 +943,7 @@ mod test {
|
||||||
|
|
||||||
assert_eq!(t.properties(), vec!["prop".to_string()]);
|
assert_eq!(t.properties(), vec!["prop".to_string()]);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
t.iter(),
|
t.items(),
|
||||||
vec![ffi::PropValuePair {
|
vec![ffi::PropValuePair {
|
||||||
prop: "prop".into(),
|
prop: "prop".into(),
|
||||||
value: "value".into(),
|
value: "value".into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue