diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d51e3660..39b61e51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,30 +61,18 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} + - name: Set dependencies + run: cp Cargo-recent.lock Cargo.lock - name: Running cargo test env: FEATURES: bitcoin elements test-utils run: | - if cargo --version | grep "1\.58"; then - # 1.0.100 uses syn 2.0 which requires edition 2021 - cargo update -p serde_json --precise 1.0.99 - # 1.0.157 uses syn 2.0 - cargo update -p serde --precise 1.0.156 - # 1.0.31 uses proc-macro 1.0.66 - cargo update -p quote --precise 1.0.30 - # 1.0.66 uses edition 2021 - cargo update -p proc-macro2 --precise 1.0.65 - # 1.8.0 requires cargo 1.60+ - cargo update -p regex --precise 1.7.0 - # 1.5.0 uses edition 2021 - cargo update -p byteorder --precise 1.4.3 - fi - for f in $FEATURES; do echo "Features: $f" && cargo test --no-default-features --features="$f"; done + for f in $FEATURES; do echo "Features: $f" && cargo test --locked --no-default-features --features="$f"; done cd simplicity-sys - cargo test --no-default-features - cargo test --features="test-utils" - echo "No default features" && cargo test --no-default-features - echo "All features" && cargo test --all-features + cargo test --locked --no-default-features + cargo test --locked --features="test-utils" + echo "No default features" && cargo test --locked --no-default-features + echo "All features" && cargo test --locked --all-features ignored: name: Ignored Tests