Skip to content

Commit

Permalink
Run pitest workflow on dependabot-pitest branches, but don't overwrit…
Browse files Browse the repository at this point in the history
…e reports
  • Loading branch information
emlun committed Oct 18, 2023
1 parent 3d20dac commit 4c765a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Test coverage

on:
push:
branches: [main]
branches:
- main
- dependabot/gradle/info.solidsoft.gradle.pitest-gradle-pitest-plugin-*

jobs:
test:
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 4c765a8

Please sign in to comment.