diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nix.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/rust.yml | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 3e5483bd..6903650a 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -19,7 +19,7 @@ jobs: - name: Run nix flake check run: nix flake check --print-build-logs - build: + build-test: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d8411fc1..4b553f3e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -44,6 +44,16 @@ jobs: test: runs-on: ubuntu-latest + services: + postgres: + image: postgres + env: + POSTGRES_USER: atuin + POSTGRES_PASSWORD: pass + POSTGRES_DB: atuin + ports: + - 5432:5432 + steps: - uses: actions/checkout@v3 @@ -62,6 +72,8 @@ jobs: - name: Run cargo test run: cargo test --all-features --workspace + env: + ATUIN_DB_URI: postgres://atuin:pass@localhost:5432/atuin - name: Run cargo check (all features) run: cargo check --all-features --workspace |
