maven.yml 887 B

123456789101112131415161718192021222324252627282930
  1. # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
  3. #
  4. # This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
  5. name: Java CI with Maven
  6. on:
  7. push:
  8. branches: [ main, master ]
  9. pull_request:
  10. branches: [ main, master ]
  11. jobs:
  12. build:
  13. name: Build Oceanengine Open Api
  14. runs-on: ubuntu-latest
  15. strategy:
  16. matrix:
  17. java: [ '8' ]
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Set up JDK
  21. uses: actions/setup-java@v2
  22. with:
  23. java-version: ${{ matrix.java }}
  24. distribution: 'temurin'
  25. cache: maven
  26. - name: Build with Maven
  27. run: mvn -B package --no-transfer-progress --file pom.xml