Skip to content

chore: OpenRanking API: post-review hardening (concurrency dedup, sync-endpoint caching, relay-decoupled lifecycle) #238

chore: OpenRanking API: post-review hardening (concurrency dedup, sync-endpoint caching, relay-decoupled lifecycle)

chore: OpenRanking API: post-review hardening (concurrency dedup, sync-endpoint caching, relay-decoupled lifecycle) #238

Workflow file for this run

on: [push, pull_request]
name: Rust CI
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pinned toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.84.0
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --features ci
lint:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pinned toolchain with rustfmt and clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.84.0
override: true
components: rustfmt, clippy
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
coverage:
name: Code Coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.31.5
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true