Skip to content

Commit

Permalink
chore: swap out artefacts for annotions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed May 6, 2024
1 parent bd9855b commit b7ba484
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ jobs:
CC_TEST_REPORTER_ID: 760097cb88b4c685dce427cf94a8e12a5f082774d06b4f4f5daef839ffc07821
with:
coverageCommand: npm run lcov

- name: Coverage annotations
uses: jgillick/test-coverage-annotations@v1
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
coverage: ./coverage/coverage-summary.json
only-changed-files: true
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- name: Run Tests and Linting
run: npm run test

- uses: actions/upload-artifact@v3
- name: Cucumber annotations
uses: deblockt/[email protected]
with:
name: test-reports-${{ matrix.node-version }}
path: test/reports/
access-token: ${{ secrets.GITHUB_TOKEN }}
path: "test/reports/cucumber-report.ndjson"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test:integration": "npm run test:integration:init && cucumber-js --config ./test/config/cucumber.mjs",
"test": "npm run test:unit && npm run test:integration",
"coverage": "c8 mocha && c8 report --reporter=html && c8 report --reporter=json-summary",
"lcov": "c8 mocha && c8 report --reporter=lcov",
"lcov": "c8 mocha && c8 report --reporter=lcov && c8 report --reporter=json-summary",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --fix",
"format": "prettier --log-level warn --write \"**/*.{js,json,jsx,md,ts,tsx,html}\"",
Expand Down
6 changes: 3 additions & 3 deletions test/config/cucumber.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
parallel: 0,
format: ['html:test/reports/cucumber-report.html'],
paths: ['test/features'],
forceExit: true
format: ["message:test/reports/cucumber-report.ndjson"],
paths: ["test/features"],
forceExit: true,
};

0 comments on commit b7ba484

Please sign in to comment.