Skip to content

Merge remote-tracking branch 'vm/codex/m2-shard-prep' into integratio… #37

Merge remote-tracking branch 'vm/codex/m2-shard-prep' into integratio…

Merge remote-tracking branch 'vm/codex/m2-shard-prep' into integratio… #37

Workflow file for this run

name: ferrumc-ci
on:
push:
branches:
- rework/v2-skeleton
- main
pull_request:
concurrency:
group: ferrumc-ci-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
rust:
name: rust workspace
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: server
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
workspaces: server -> target
cache-on-failure: "true"
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Cargo metadata
run: cargo metadata --no-deps > /dev/null
- name: Format
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Tests
run: cargo nextest run --workspace --all-targets
- name: Doc tests
run: cargo test --workspace --doc
- name: Forbidden public claims
run: python3 ../scripts/check-forbidden-claims.py --self-test --check-index
- name: Generated files are current
run: cargo xtask generate --check