Merge Feat/packer_integration Into Dev/0.1.0 #10
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 & test | |
| on: | |
| push: | |
| branches: ["main", "dev/*"] | |
| pull_request: | |
| branches: ["main", "dev/*"] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v26 | |
| - uses: cachix/cachix-action@v14 | |
| with: | |
| name: devenv | |
| - name: Install devenv.sh | |
| run: nix profile install nixpkgs#devenv | |
| - name: Start services and run tests | |
| shell: devenv shell bash -- -e {0} | |
| run: | | |
| # Start postgres service | |
| devenv processes start postgres | |
| # Run database migrations | |
| cd malbox-database | |
| sqlx migrate run | |
| cd .. | |
| # Run tests | |
| cargo test --verbose | |
| # Build project | |
| cargo build --verbose |