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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. java: [ 11, 17 ]
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Set up JDK ${{ matrix.java }}
  23. uses: actions/setup-java@v3
  24. with:
  25. java-version: ${{ matrix.java }}
  26. distribution: temurin
  27. - name: Print tool versions
  28. run: |
  29. java -version
  30. ./mvnw -B --version
  31. ant -version
  32. - name: Compile + package code
  33. run: ./mvnw -B --file pom.xml -DskipTests package
  34. - name: Run Tests
  35. # Tests in module ajde call Swing/AWT classes. Without frame buffer they throw
  36. # HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  37. uses: GabrielBB/xvfb-action@v1
  38. with:
  39. run: ./mvnw -B --file pom.xml -Daspectj.tests.verbose=false verify