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.

24 lines
524 B

  1. name: Pull Request CI
  2. on: [pull_request]
  3. jobs:
  4. build:
  5. name: Build
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v1
  9. - name: Set up JDK 1.8
  10. uses: actions/setup-java@v1
  11. with:
  12. java-version: 1.8
  13. - name: Cache for maven
  14. uses: actions/cache@v1
  15. with:
  16. path: ~/.m2/repository
  17. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  18. restore-keys: |
  19. ${{ runner.os }}-maven-
  20. - name: Build with Maven
  21. run: mvn -B package