mirror of
https://github.com/narrrl/proton-sdk-rs.git
synced 2026-11-04 00:47:01 +01:00
40 lines
772 B
YAML
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
|