better deploys
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m12s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m12s
This commit is contained in:
@@ -107,12 +107,15 @@ jobs:
|
||||
if: always() # This step runs even if the previous test step failed.
|
||||
run: |
|
||||
echo "--- Merging Coverage Reports and Displaying Text Summary ---"
|
||||
# The `nyc report` command can automatically merge reports from different directories
|
||||
# and then generate a new report from the merged data.
|
||||
# We specify the source directories and the desired text reporter.
|
||||
npx nyc report --reporter=text -t .coverage/unit -t .coverage/integration
|
||||
# We also generate the final merged HTML report for archiving.
|
||||
npx nyc report --reporter=html -t .coverage/unit -t .coverage/integration --report-dir .coverage/
|
||||
# Step 1: Merge the coverage data from both unit and integration test runs
|
||||
# into a single file in the .coverage directory.
|
||||
npx nyc merge .coverage/integration .coverage/unit
|
||||
mv .coverage/merged/coverage.json .coverage/coverage.json
|
||||
|
||||
# Step 2: Generate the text summary from the merged data and print it to the console.
|
||||
npx nyc report --reporter=text
|
||||
# Step 3: Generate the final HTML report from the same merged data for archiving.
|
||||
npx nyc report --reporter=html --report-dir .coverage/
|
||||
|
||||
- name: Archive Code Coverage Report
|
||||
# This action saves the generated HTML coverage report as a downloadable artifact.
|
||||
|
||||
Reference in New Issue
Block a user