Skip to content

Commit

Permalink
ci: Fix test for dependabot by using different artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
davelosert committed Sep 1, 2024
1 parent e5edf3b commit b56a44a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
- name: "Upload Coverage"
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.branch }}
## We can't use the branch name as it can contain invalid characters (e.g. dependatbot hast forwared slashes in it's branch name)
name: "coverage-${{ matrix.branch == 'main' && 'main' || 'test-branch' }}"
path: coverage

build-and-report:
Expand All @@ -56,7 +57,7 @@ jobs:
- name: "Download Coverage Artifacts for ${{ github.head_ref}}"
uses: actions/download-artifact@v4
with:
name: coverage-${{ github.head_ref }}
name: coverage-test-branch
path: coverage

- name: "Download Coverage Artifacts for main"
Expand Down

1 comment on commit b56a44a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.26%
⬇️ -1.63%
524 / 779
🔵 Statements 67.26%
⬇️ -1.63%
524 / 779
🔵 Functions 86.66%
⬆️ +0.95%
26 / 30
🔵 Branches 94.4%
⬆️ +0.77%
118 / 125
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/index.ts 0% 0% 0% 0% 1-6, 10-15, 17-18, 23-24, 26-27, 29, 31-36, 38-52, 54-59, 61-70, 72, 74-76, 78-80, 82-84, 86-87, 89-117, 119-143, 145-152, 154-158, 160-166
src/writeSummaryToComment.ts 100% 100% 100% 100%
src/inputs/getCommentOn.ts 100% 100% 100% 100%
src/inputs/options.ts 0% 0% 0% 0% 1-2, 5-10, 25, 27, 29-30, 32-35, 37-40, 42-49, 51, 53, 56-59, 61-63, 65, 67, 69-81
Unchanged Files
src/icons.ts 100% 100% 100% 100%
src/octokit.ts 0% 0% 0% 0% 1-2, 6-9
src/writeSummaryToPR.ts 100% 100% 100% 100%
src/inputs/FileCoverageMode.ts 100% 100% 100% 100%
src/inputs/getCommitSHA.ts 100% 100% 100% 100%
src/inputs/getPullChanges.ts 80.39% 85.71% 100% 80.39% 53-61, 63
src/inputs/getPullRequestNumber.ts 92.06% 90% 100% 92.06% 73-77
src/inputs/getViteConfigPath.ts 97.95% 87.5% 100% 97.95% 47
src/inputs/parseCoverageThresholds.ts 100% 100% 100% 100%
src/inputs/parseJsonReports.ts 0% 0% 0% 0% 1-4, 8-14, 16-24, 28-29, 32-34, 36-44, 48-52
src/report/generateCommitSHAUrl.ts 100% 100% 100% 100%
src/report/generateFileCoverageHtml.ts 100% 100% 100% 100%
src/report/generateFileUrl.ts 100% 100% 100% 100%
src/report/generateHeadline.ts 100% 100% 100% 100%
src/report/generateSummaryTableHtml.ts 100% 100% 100% 100%
src/report/getUncoveredLinesFromStatements.ts 100% 100% 100% 100%
Generated in workflow #726 for commit b56a44a by the Vitest Coverage Report Action

Please sign in to comment.