fix: handle empty post URL (only link is to the post on lobste.rs i…
#19
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: Check | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install stable Rust toolchain, and nightly rustfmt | |
| run: | | |
| rustup toolchain install stable --profile minimal | |
| rustup component add clippy | |
| rustup toolchain install nightly --profile minimal | |
| rustup component add --toolchain nightly rustfmt | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check | |
| run: cargo check | |
| - name: Lint | |
| run: cargo clippy -- -D warnings | |
| - name: Format | |
| run: cargo +nightly fmt --check | |
| - name: Check if Cargo.lock needs to be updated | |
| run: cargo update -w --locked | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-msrv | |
| - name: Check minimum Rust version | |
| run: cargo-msrv verify |