mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-12 18:04:29 +01:00
run sqlite and postgres coverage
This commit is contained in:
parent
efc911a229
commit
4a90ba8992
2 changed files with 14 additions and 4 deletions
14
.github/workflows/codecov.yaml
vendored
14
.github/workflows/codecov.yaml
vendored
|
@ -13,11 +13,23 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- name: Generate coverage reports
|
- 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
|
run: npx nyc --reporter=lcov npm test
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|
4
.github/workflows/postgres-redis-ci.yml
vendored
4
.github/workflows/postgres-redis-ci.yml
vendored
|
@ -28,6 +28,4 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TEST_POSTGRES: true
|
TEST_POSTGRES: true
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx nyc --silent npm test
|
run: npx nyc --silent npm test
|
||||||
- name: Generate coverage report
|
|
||||||
run: npm run cover:report
|
|
Loading…
Reference in a new issue