From 60d5fe9277795c6e5ca9394f7a17490cce69569d Mon Sep 17 00:00:00 2001 From: hay-kot Date: Fri, 26 Nov 2021 12:08:39 -0900 Subject: [PATCH] update workflow --- .github/workflows/backend-tests.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index a8f33a7950e2..25e1bfce309d 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -10,9 +10,17 @@ on: jobs: tests: + runs-on: ubuntu-latest + env: PRODUCTION: false - runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + Database: [sqlite, postgres] + + # Services services: postgres: image: postgres @@ -23,6 +31,8 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 ports: - 5432:5432 + + # Steps steps: #---------------------------------------------- # check-out repo and set-up python @@ -63,14 +73,8 @@ jobs: # run test suite #---------------------------------------------- - name: Run Test Suite - run: | - make test-all - #---------------------------------------------- - # run test suite - #---------------------------------------------- - - name: Run Test Suite Postgres env: - DB_ENGINE: postgres + DB_ENGINE: ${{ matrix.Database }} POSTGRES_SERVER: localhost run: | make test-all