Skip to content

Commit

Permalink
feat(ci): run tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nevivurn committed Sep 30, 2024
1 parent d282cd7 commit 1b70bd8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,33 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
test:
name: Test
runs-on: ubuntu-latest

services:
dev_db:
image: postgres:16
env:
POSTGRES_USER: sgs
POSTGRES_PASSWORD: sgs-pass
ports:
- 5432:5432
volumes:
- dev_data:/var/lib/postgresql/data

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v11
- uses: DeterminateSystems/magic-nix-cache-action@v6

- name: Run tests
run: nix develop -c make check

build:
name: Build
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v11
Expand Down

0 comments on commit 1b70bd8

Please sign in to comment.