chore(deps): bump cachix/cachix-action from 16 to 17 #26
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: devenv - rust build and test | |
| on: | |
| push: | |
| branches: ["main", "dev*"] | |
| paths: | |
| - 'back-end/**' | |
| - '.github/workflows/devenv-rust.yml' | |
| pull_request: | |
| branches: ["main", "dev*"] | |
| paths: | |
| - 'back-end/**' | |
| - '.github/workflows/devenv-rust.yml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/install-nix-action@v31 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: devenv | |
| - name: Install devenv | |
| run: nix profile install nixpkgs#devenv | |
| - name: Run rustfmt | |
| run: devenv shell -- cargo fmt --all --manifest-path back-end/Cargo.toml -- --check | |
| # - name: Run linter | |
| # run: devenv shell -- cargo clippy --manifest-path back-end/Cargo.toml --all-targets --all -- -D warnings | |
| - name: Build project | |
| run: SQLX_OFFLINE=true devenv shell -- cargo build --manifest-path back-end/Cargo.toml --verbose | |
| - name: Tests | |
| run: SQLX_OFFLINE=true devenv shell -- cargo nextest run --manifest-path back-end/Cargo.toml --all --no-tests pass | |
| - name: Doctests | |
| run: SQLX_OFFLINE=true devenv shell -- cargo test --manifest-path back-end/Cargo.toml --doc | |
| - name: Generate documentation | |
| run: SQLX_OFFLINE=true devenv shell -- cargo doc --manifest-path back-end/Cargo.toml --no-deps --document-private-items |