Files
mp-ai-module-controller/.gitea/workflows/ci.yml
T
2026-07-21 11:10:20 -05:00

33 lines
701 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust if needed
shell: bash
run: |
if ! command -v cargo >/dev/null 2>&1; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
fi
- name: Show Rust versions
shell: bash
run: |
rustc --version
cargo --version
- name: Run precommit checks
shell: bash
run: scripts/precommit-check.sh