From b56ced53eee079b09feaa3d2d830b53e3fca04b4 Mon Sep 17 00:00:00 2001 From: rm-dr <96270320+rm-dr@users.noreply.github.com> Date: Thu, 27 Nov 2025 13:27:09 -0800 Subject: [PATCH] CI --- .github/workflows/ci.yml | 73 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ac23abd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,73 @@ +name: CI + +on: + pull_request: + workflow_dispatch: + push: + branches: + - main + schedule: + - cron: "0 0 */5 * *" + +jobs: + typos: + name: "Check typos" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check typos + uses: crate-ci/typos@master + with: + config: ./typos.toml + + lychee: + name: "Check links" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check links + id: lychee + uses: lycheeverse/lychee-action@v1 + with: + args: --config ./lychee.toml . + fail: true + + clippy: + name: "Clippy" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: "Install Rust" + run: | + sudo apt update + DEBIAN_FRONTEND=noninteractive \ + sudo apt install --yes rustup + rustup default 1.91.0 + rustup component add clippy + + - name: Run clippy + run: cargo clippy --all-targets --all-features + + buildandtest: + name: "Build and test" + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + - name: "Install Rust" + run: | + sudo apt update + DEBIAN_FRONTEND=noninteractive \ + sudo apt install --yes rustup + rustup default 1.91.0 + cargo install cargo-all-features + + - name: Build + run: cargo build-all-features -- --release + + - name: Test + run: cargo test-all-features -- --release