Files
proton-sdk-rs/.github/workflows/ci.yml
2026-06-30 04:26:37 +02:00

40 lines
772 B
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Format Check
run: cargo fmt --all -- --check
- name: Clippy Lints
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build (Debug)
run: cargo build --all-targets
- name: Run Offline Tests
run: cargo test --all-targets