Skip to content

Commit

Permalink
Start tracking coverage (matrix-org#351)
Browse files Browse the repository at this point in the history
* Start tracking coverage

* coverage test
  • Loading branch information
Half-Shot authored Sep 1, 2022
1 parent 33becc4 commit 311ac9f
Show file tree
Hide file tree
Showing 6 changed files with 602 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
node-version: 16
- run: yarn --ignore-scripts
- run: yarn lint:js

lint-rust:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,6 +30,7 @@ jobs:
profile: minimal
components: rustfmt
- run: cargo fmt --all -- --check

config:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -67,4 +69,4 @@ jobs:
toolchain: stable
profile: minimal
- run: yarn
- run: yarn test
- run: yarn test:cover
1 change: 0 additions & 1 deletion .github/workflows/newsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Newsfile
on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
changelog:
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.pem
config.yml
lib/
node_modules/
Expand All @@ -15,3 +14,10 @@ public/
/src/libRs.d.ts

book
*.cer
*.pem
*.pcks8

# Coverage
coverage
.nyc_output
1 change: 1 addition & 0 deletions changelog.d/351.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Track coverage of tests.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"start:webhooks": "node --require source-map-support/register lib/App/GithubWebhookApp.js",
"start:matrixsender": "node --require source-map-support/register lib/App/MatrixSenderApp.js",
"test": "mocha -r ts-node/register tests/init.ts tests/*.ts tests/**/*.ts",
"test:cover": "nyc --reporter=lcov --reporter=text yarn test",
"lint": "yarn run lint:js && yarn run lint:rs",
"lint:js": "eslint -c .eslintrc.js 'src/**/*.ts' 'tests/**/*.ts' 'web/**/*.ts' 'web/**/*.tsx'",
"lint:rs": "cargo fmt --all -- --check",
Expand Down Expand Up @@ -59,6 +60,7 @@
"micromatch": "^4.0.4",
"mime": "^3.0.0",
"node-emoji": "^1.11.0",
"nyc": "^15.1.0",
"prom-client": "^14.0.1",
"reflect-metadata": "^0.1.13",
"rss-parser": "^3.12.0",
Expand Down
Loading

0 comments on commit 311ac9f

Please sign in to comment.