pull_request.yml 670 B

123456789101112131415161718192021222324252627
  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: Java CI with Maven
  4. on:
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: Set up JDK 1.8
  13. uses: actions/setup-java@v1
  14. with:
  15. java-version: 1.8
  16. - name: Cache Maven Repository
  17. uses: actions/cache@v1
  18. with:
  19. path: ~/.m2
  20. key: jetlinks-community-maven-repository
  21. - name: Build with Maven
  22. run: ./mvnw package -Dmaven.test.skip=true -Pbuild