You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

maven.yml 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This workflow will build a Java project with Maven
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
  3. name: Build AspectJ
  4. on:
  5. push:
  6. branches: [ master ]
  7. pull_request:
  8. branches: [ master ]
  9. workflow_dispatch:
  10. jobs:
  11. build:
  12. # No automatic builds for Dependabot PRs
  13. # Caveat: cannot start 'if:' expression with '!', hence '!= true'
  14. if: startsWith(github.actor, 'dependabot') != true
  15. strategy:
  16. fail-fast: false
  17. matrix:
  18. # TODO: switch from 18-ea to 18, as soon as Temurin offers the download on https://adoptium.net/releases.html
  19. java: [ 11, 17, 18-ea ]
  20. runs-on: ubuntu-latest
  21. steps:
  22. - uses: actions/checkout@v3
  23. - name: Set up JDK ${{ matrix.java }}
  24. uses: actions/setup-java@v3
  25. with:
  26. java-version: ${{ matrix.java }}
  27. distribution: temurin
  28. - name: Print tool versions
  29. run: |
  30. java -version
  31. ./mvnw -B --version
  32. ant -version
  33. - name: Compile + package code
  34. run: ./mvnw -B --file pom.xml -DskipTests package
  35. - name: Run Tests
  36. # Tests in module ajde call Swing/AWT classes. Without frame buffer they throw
  37. # HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  38. uses: GabrielBB/xvfb-action@v1
  39. with:
  40. run: ./mvnw -B --file pom.xml -Daspectj.tests.verbose=false verify