fix: docker push and book deploy workflows failing on forks #1801
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
cargo-udeps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cargo udeps | |
run: cargo install cargo-udeps --locked | |
- name: Run cargo udeps | |
run: cargo +nightly udeps --workspace --tests --all-targets --release --exclude ef-tests | |
cargo-workspace-lints: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cargo workspace lints | |
run: cargo install cargo-workspace-lints --locked | |
- name: Run cargo workspace lints | |
run: cargo workspace-lints |