shifty-backend/.github/workflows/rust.yml
neosam 6d9b898238
Some checks failed
Rust / build (push) Failing after 36s
Install more rust tools on build action
2024-06-29 12:56:38 +00:00

31 lines
680 B
YAML

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