name: CI # Rust gate. Lives in .github/workflows so both Gitea and GitHub run it. on: pull_request: branches: [develop, main] push: branches: [develop, main] jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install Rust run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Add clippy + rustfmt run: rustup component add clippy rustfmt - run: cargo fmt --check - run: cargo clippy --all-targets -- -D warnings - run: cargo test --locked