diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7197b1f..fcbb799 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,7 @@ jobs: env: CACHE_KEY: npm-cache-key-node-v${{ matrix.node-version }} - run: npm i + - run: docker-compose up -d - name: Test run: npm test -- --ci --runInBand --reporters=default --reporters=jest-junit env: @@ -59,3 +60,5 @@ jobs: if: always() # always run even if the previous step fails with: report_paths: reports/jest-node*/*.xml + - run: docker-compose down + if: always() diff --git a/docker-compose.yml b/docker-compose.yml index 854f6e0..48a6d1c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,3 @@ services: - 5432:5432 env_file: - .db.env - restart: unless-stopped