Files
r701/.gitea/workflows/check-format-and-test.yaml
T
nicolabelluti d8c6440a59
Check, format and test / build (push) Successful in 33s
Re-added npm to the CI/CD pipeline
2026-10-01 14:49:02 +02:00

32 lines
710 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 something to say
run: cargo clippy --all-targets