Skip to content

Ane 1028 broker fix fatal exit #494

Ane 1028 broker fix fatal exit

Ane 1028 broker fix fatal exit #494

Workflow file for this run

name: static analysis
on: pull_request
# Run checkers independently, so you see errors from each.
jobs:
# Linting
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
# Formatting
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- run: cargo fmt
- run: git diff --exit-code
# Ensure db is migrated
db-migrated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: sqlx-cli
- run: '! make migration-status | grep -q pending'