shifty-backend/.github/workflows/rust.yml
neosam f65d358fcf
Some checks failed
Rust / build (push) Failing after 2s
Update rust build action
2024-06-29 12:02:33 +00:00

29 lines
569 B
YAML

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
SQLX_OFFLINE: "true"
jobs:
build:
runs-on: native
steps:
- uses: actions/checkout@v4
- name: Install cargo
run: nix-env -A nixos.cargo
- name: Formatting
run: cargo fmt --all -- --check
- name: Build local version
run: cargo build --verbose
- name: Build OIDC version
run: cargo build --verbose --no-default-features --features oidc
- name: Run tests
run: cargo test --verbose