Skip to content

Added fix for handling XML files and DOCTYPE #2

Added fix for handling XML files and DOCTYPE

Added fix for handling XML files and DOCTYPE #2

name: Pull request
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Check Style
run: mvn checkstyle:check
- name: Build
run: mvn clean compile
- name: Test
run: mvn test
- name: Publish Test Report
if: always()
uses: mikepenz/action-junit-report@v4
with:
report_paths: 'target/surefire-reports/TEST-*.xml'
- name: Sonar
run: mvn verify sonar:sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}