Skip to content

feat(emtp): add new plugin entity-task-mapper-plugin #7

feat(emtp): add new plugin entity-task-mapper-plugin

feat(emtp): add new plugin entity-task-mapper-plugin #7

name: 'Check Pull Request for plugin: entity-mapper-task-plugin'
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'emtp/**'
jobs:
tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21 for x64
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
architecture: x64
- name: Install Pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc
- name: Execute unit tests
run: mvn -ntp -pl emtp test
- name: Execute mutation tests
run: mvn -ntp -pl emtp org.pitest:pitest-maven:mutationCoverage
- name: Extract summary from pitest
run: |
echo "<html><head></head><body><h1>Pit Test Coverage Report: entity-mapper-task-plugin</h1><h3>Project Summary</h3>" > pitest.html
perl -0777 -ne 'print "$1\n" if /(<table>.*?<\/table>)/s' emtp/target/pit-reports/index.html >> pitest.html
echo "</body></html>" >> pitest.html
- name: Convert pitest report to markdown
run: pandoc --from html --to markdown_github --no-highlight pitest.html
- name: Post comment
uses: luukkemp/pr-comment@2024.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: pitest.html