mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 13:21:45 +01:00
fix(ci): coverage reporting
This commit is contained in:
parent
d2a164ae52
commit
95137dbe5f
@ -7,7 +7,6 @@ seeds
|
||||
test
|
||||
!test/integration
|
||||
.eslint*
|
||||
.mocha*
|
||||
.nvmrc
|
||||
.nyc_output
|
||||
docker-compose.yml
|
||||
|
1
.github/workflows/checks.yml
vendored
1
.github/workflows/checks.yml
vendored
@ -57,6 +57,7 @@ jobs:
|
||||
test-integrations-and-cover:
|
||||
name: Integration Tests and Coverage
|
||||
runs-on: ubuntu-latest
|
||||
environment: test
|
||||
needs:
|
||||
- lint
|
||||
- build-check
|
||||
|
@ -10,7 +10,7 @@ ENV DB_MAX_POOL_SIZE=2
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY ["package.json", "package-lock.json", "cucumber.js", "tsconfig.json", "knexfile.js", "./"]
|
||||
COPY ["package.json", "package-lock.json", ".nycrc.json", ".mocharc.js", "cucumber.js", "tsconfig.json", "knexfile.js", "./"]
|
||||
|
||||
RUN npm install --quiet
|
||||
|
||||
|
@ -3,6 +3,7 @@ const base = [
|
||||
'--require-module ts-node/register',
|
||||
'--require test/integration/features/**/*.ts',
|
||||
'--require test/integration/features/*.ts',
|
||||
'--publish-quiet',
|
||||
].join(' ')
|
||||
|
||||
const config = [
|
||||
|
15
package.json
15
package.json
@ -30,21 +30,20 @@
|
||||
"pretest:unit": "mkdir -p .test-reports/unit",
|
||||
"test:unit": "mocha 'test/**/*.spec.ts'",
|
||||
"test:unit:watch": "npm run test:unit -- --min --watch --watch-files src/**/*,test/**/*",
|
||||
"cover:unit": "nyc --report-dir .coverage/unit npm run --ignore-scripts test:unit",
|
||||
"cover:unit": "nyc --report-dir .coverage/unit npm run test:unit",
|
||||
"docker:build": "docker build -t nostr-ts-relay .",
|
||||
"pretest:integration": "mkdir -p .test-reports/integration",
|
||||
"test:integration": "cucumber-js",
|
||||
"cover:integration": "nyc --report-dir .coverage/integration npm run --ignore-scripts test:integration",
|
||||
"cover:integration": "nyc --report-dir .coverage/integration npm run test:integration -- -p cover",
|
||||
"predocker:compose:up": "[ -d \"$HOME/.nostr\" ] || mkdir -p $HOME/.nostr",
|
||||
"docker:compose:start": "docker compose up --build",
|
||||
"docker:compose:stop": "docker compose down",
|
||||
"docker:compose:clean": "docker compose rm",
|
||||
"predocker:test:integration": "docker compose -f ./test/integration/docker-compose.yml up -d --quiet-pull --build",
|
||||
"docker:test:integration": "docker compose -f ./test/integration/docker-compose.yml run tests npm run test:integration",
|
||||
"postdocker:test:integration": "docker compose -f ./test/integration/docker-compose.yml down",
|
||||
"predocker:cover:integration": "docker compose -f ./test/integration/docker-compose.yml up -d --quiet-pull --build",
|
||||
"docker:cover:integration": "docker compose -f ./test/integration/docker-compose.yml run tests npm run cover:integration",
|
||||
"postdocker:cover:integration": "docker compose -f ./test/integration/docker-compose.yml down"
|
||||
"predocker:integration:run": "docker compose -f ./test/integration/docker-compose.yml up -d --quiet-pull --build",
|
||||
"docker:integration:run": "docker compose -f ./test/integration/docker-compose.yml run tests",
|
||||
"postdocker:integration:run": "docker compose -f ./test/integration/docker-compose.yml down",
|
||||
"docker:test:integration": "npm run docker:integration:run -- npm run test:integration",
|
||||
"docker:cover:integration": "npm run docker:integration:run -- npm run cover:integration"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
x
Reference in New Issue
Block a user