diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 90488a1..db6e99e 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -12,5 +12,24 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - name: Build the docker-compose stack + env: + PG_USER: ci_db_user + PG_PASS: ci_db_pass + run: docker-compose -f docker/docker-compose-ci.yml up -d + - name: Check running containers + run: docker ps + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm ci + - name: Generate sqlite coverage reports + run: npx nyc --reporter=lcov npm test + - name: Generate postgres coverage reports + env: + TEST_POSTGRES: true + timeout-minutes: 5 + run: npx nyc --reporter=lcov npm test - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 diff --git a/.github/workflows/postgres-redis-ci.yml b/.github/workflows/postgres-redis-ci.yml index 6963ab5..3003686 100644 --- a/.github/workflows/postgres-redis-ci.yml +++ b/.github/workflows/postgres-redis-ci.yml @@ -28,6 +28,4 @@ jobs: env: TEST_POSTGRES: true timeout-minutes: 5 - run: npx nyc --silent npm test - - name: Generate coverage report - run: npm run cover:report \ No newline at end of file + run: npx nyc --silent npm test \ No newline at end of file