From 77b9e604d54a959b621b2d354bf2b1012bb9f52e Mon Sep 17 00:00:00 2001 From: Alex Pearwin Date: Mon, 4 Dec 2023 08:48:53 +0000 Subject: [PATCH] Run tests in CI. --- .github/workflows/ci.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8c96e09..a6131bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,18 @@ jobs: runs-on: ubuntu-22.04 env: ImageOS: ubuntu22 + services: + postgres: + image: postgres + env: + POSTGRES_PASSWORD: postgres + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 steps: - uses: actions/checkout@v3 - uses: erlef/setup-beam@v1 @@ -73,7 +85,5 @@ jobs: run: mix dialyzer --plt - name: Check typespecs run: mix dialyzer --format github - - # Tests. - # - name: Check tests - # run: mix test + - name: Run tests + run: mix test