-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pitest workflow on dependabot-pitest branches, but don't overwrit…
…e reports
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ name: Test coverage | |
|
||
on: | ||
push: | ||
branches: [main] | ||
branches: | ||
- main | ||
- dependabot/gradle/info.solidsoft.gradle.pitest-gradle-pitest-plugin-* | ||
|
||
jobs: | ||
test: | ||
|
@@ -48,11 +50,13 @@ jobs: | |
# This creates a file that defines a [Shields.io endpoint badge](https://shields.io/endpoint) | ||
# which we can then include in the project README. | ||
uses: ./.github/actions/pit-results-badge | ||
if: github.ref_name == 'main' | ||
with: | ||
output-file: build/gh-pages/coverage-badge.json | ||
|
||
- name: Check out GitHub Pages branch | ||
uses: actions/checkout@v4 | ||
if: github.ref_name == 'main' | ||
with: | ||
ref: gh-pages | ||
clean: false | ||
|
@@ -69,6 +73,7 @@ jobs: | |
prev-mutations-file: prev-mutations.xml | ||
|
||
- name: Push to GitHub Pages | ||
if: github.ref_name == 'main' | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
|