Skip to content

Commit

Permalink
ci: add correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Mar 20, 2024
1 parent 6ae4bb4 commit 315f25e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 17 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
with:
components: rustfmt
- name: cargo fmt --check
run: cargo fmt --check
run: |
cd auctioning_platform
cargo fmt --check
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
Expand Down Expand Up @@ -73,7 +75,9 @@ jobs:
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo doc
run: cargo doc --no-deps --all-features
run: |
cd auctioning_platform
cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: --cfg docsrs
hack:
Expand All @@ -92,7 +96,9 @@ jobs:
# intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4
# --feature-powerset runs for every combination of features
- name: cargo hack
run: cargo hack --feature-powerset check
run: |
cd auctioning_platform
cargo hack --feature-powerset check
msrv:
# check that we can build using the minimal rust version that is specified by this crate
runs-on: ubuntu-latest
Expand All @@ -111,4 +117,6 @@ jobs:
with:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check
run: |
cd auctioning_platform
cargo check
16 changes: 12 additions & 4 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
run: |
cd auctioning_platform
cargo generate-lockfile
- name: cargo test --locked
run: cargo test --locked --all-features --all-targets
run: |
cd auctioning_platform
cargo test --locked --all-features --all-targets
# https://twitter.com/alcuadrado/status/1571291687837732873
update:
# This action checks that updating the dependencies of this crate to the latest available that
Expand All @@ -50,9 +54,13 @@ jobs:
uses: dtolnay/rust-toolchain@beta
- name: cargo update
if: hashFiles('Cargo.lock') != ''
run: cargo update
run: |
cd auctioning_platform
cargo update
- name: cargo test
if: hashFiles('Cargo.lock') != ''
run: cargo test --locked --all-features --all-targets
run: |
cd auctioning_platform
cargo test --locked --all-features --all-targets
env:
RUSTFLAGS: -D deprecated
36 changes: 27 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,19 @@ jobs:
- name: cargo generate-lockfile
# enable this ci template to run regardless of whether the lockfile is checked in or not
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
run: |
cd auctioning_platform
cargo generate-lockfile
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
run: cargo test --locked --all-features --all-targets
run: |
cd auctioning_platform
cargo test --locked --all-features --all-targets
# https://github.com/rust-lang/cargo/issues/6669
- name: cargo test --doc
run: cargo test --locked --all-features --doc
run: |
cd auctioning_platform
cargo test --locked --all-features --doc
minimal:
# This action chooses the oldest version of the dependencies permitted by Cargo.toml to ensure
# that this crate is compatible with the minimal version that this crate and its dependencies
Expand Down Expand Up @@ -79,9 +85,13 @@ jobs:
- name: rustup default stable
run: rustup default stable
- name: cargo update -Zminimal-versions
run: cargo +nightly update -Zdirect-minimal-versions
run: |
cd auctioning_platform
cargo +nightly update -Zdirect-minimal-versions
- name: cargo test
run: cargo test --locked --all-features --all-targets
run: |
cd auctioning_platform
cargo test --locked --all-features --all-targets
os-check:
# run cargo test on mac and windows
runs-on: ${{ matrix.os }}
Expand All @@ -104,9 +114,13 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
run: |
cd auctioning_platform
cargo generate-lockfile
- name: cargo test
run: cargo test --locked --all-features --all-targets
run: |
cd auctioning_platform
cargo test --locked --all-features --all-targets
coverage:
# use llvm-cov to build and collect coverage and outputs in a format that
# is compatible with codecov.io
Expand Down Expand Up @@ -143,9 +157,13 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
run: |
cd auctioning_platform
cargo generate-lockfile
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
run: |
cd auctioning_platform
cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
- name: Record Rust version
run: echo "RUST=$(rustc --version)" >> "$GITHUB_ENV"
- name: Upload to codecov.io
Expand Down

0 comments on commit 315f25e

Please sign in to comment.