mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
commit
f48fb6c3f6
2 changed files with 20 additions and 3 deletions
19
.github/workflows/codecov.yaml
vendored
19
.github/workflows/codecov.yaml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/postgres-redis-ci.yml
vendored
2
.github/workflows/postgres-redis-ci.yml
vendored
|
@ -29,5 +29,3 @@ jobs:
|
|||
TEST_POSTGRES: true
|
||||
timeout-minutes: 5
|
||||
run: npx nyc --silent npm test
|
||||
- name: Generate coverage report
|
||||
run: npm run cover:report
|
Loading…
Reference in a new issue