Skip to content

fix: handle empty post URL (only link is to the post on lobste.rs i… #19

fix: handle empty post URL (only link is to the post on lobste.rs i…

fix: handle empty post URL (only link is to the post on lobste.rs i… #19

Workflow file for this run

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