Nicolas Cantu 21f97c53e9
Some checks failed
CI - sdk_relay / build-test (push) Failing after 34s
CI - sdk_relay / security (push) Successful in 2m2s
Open source: LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, CHANGELOG, Gitea templates, CI, docs index, tests scaffolding
2025-08-25 15:00:15 +02:00

52 lines
1.2 KiB
YAML

name: CI - sdk_relay
on:
push:
branches: [ main, develop, docker-support ]
pull_request:
branches: [ main, develop, docker-support ]
env:
RUST_VERSION: 'stable'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Tests
run: cargo test --all
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
- name: Cargo audit
run: |
cargo install cargo-audit || true
cargo audit --deny warnings || true