Skip to content

Merge pull request #1100 from TrainLCD/revert-1098-fix/routes-sort #2046

Merge pull request #1100 from TrainLCD/revert-1098-fix/routes-sort

Merge pull request #1100 from TrainLCD/revert-1098-fix/routes-sort #2046

Workflow file for this run

on:
pull_request:
push:
paths:
- "stationapi/**"
- "migration/**"
- "data_validator/**"
- "Cargo.lock"
- "Cargo.toml"
name: Continuous integration
env:
SQLX_OFFLINE: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: sudo apt-get install protobuf-compiler
- run: cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: sudo apt-get install protobuf-compiler
- run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: sudo apt-get install protobuf-compiler
- run: rustup component add clippy
- run: cargo clippy -- -D warnings