pullrequest.yml 652 B

123456789101112131415161718192021222324252627
  1. name: Pull Request
  2. on:
  3. pull_request:
  4. env:
  5. JAVA_DIST: 'temurin'
  6. JAVA_VERSION: 23
  7. defaults:
  8. run:
  9. shell: bash
  10. jobs:
  11. test:
  12. name: Compile and Test
  13. runs-on: ubuntu-latest
  14. if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
  15. steps:
  16. - uses: actions/checkout@v4
  17. - uses: actions/setup-java@v4
  18. with:
  19. distribution: ${{ env.JAVA_DIST }}
  20. java-version: ${{ env.JAVA_VERSION }}
  21. cache: 'maven'
  22. - name: Build and Test
  23. run: xvfb-run mvn -B clean install jacoco:report -Pcoverage -Djavafx.platform=linux