Files
r701/.gitea/workflows/check-format-and-test.yaml
T
nicolabellutiandClaude Sonnet 5 93f9e9d3af
Check, format and test / build (push) Successful in 1m13s
Updated the Rust version used by the CI/CD and silenced clippy's missing_errors_doc lint
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-01 12:44:07 +02:00

32 lines
709 B
YAML

name: Check, format and test
on:
push:
jobs:
build:
container: docker.io/rust:1.98.1-alpine3.24
steps:
- name: Install the dependencies
run: |
rustup component add clippy rustfmt &&
apk update &&
apk add musl-dev git npm
- name: Checkout the code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Check if the code compiles
run: cargo check
- name: Check if the tests run correctly
run: cargo test
- name: Check if the code is formatted correctly
run: cargo fmt --check
- name: Check if Clippy has someting to say
run: cargo clippy --all-targets