maven.yml 708 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: CI Build
  2. on:
  3. push:
  4. pull_request:
  5. types: [opened, synchronize, reopened]
  6. # Allows you to run this workflow manually from the Actions tab
  7. workflow_dispatch:
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Set up JDK
  14. uses: actions/setup-java@v3
  15. with:
  16. java-version: 17
  17. distribution: 'temurin'
  18. - name: Run Tests
  19. run: mvn test -B
  20. - name: Build Assembly
  21. run: mvn clean package assembly:single
  22. - name: Upload Assembly
  23. uses: actions/upload-artifact@v3
  24. with:
  25. name: "JPlag"
  26. path: "jplag/target/jplag-*-jar-with-dependencies.jar"