Check, format and test / build (push) Successful in 14m6s
Scaffolds the oxibadge crate/frontend as a new workspace member, stripped down to a bare hello-world, and extends the CI pipeline Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
34 lines
826 B
YAML
34 lines
826 B
YAML
name: Check, format and test
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
container: docker.io/rust:1.98.1-alpine3.24
|
|
env:
|
|
RUSTFLAGS: -C target-feature=-crt-static
|
|
steps:
|
|
- name: Install the dependencies
|
|
run: |
|
|
rustup component add clippy rustfmt &&
|
|
apk update &&
|
|
apk add musl-dev git npm pkgconf gtk+3.0-dev webkit2gtk-4.1-dev librsvg-dev patchelf
|
|
|
|
- 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
|