microsoft/gctoolkit
Publicmirrored fromhttps://github.com/microsoft/gctoolkitAvailable
.github/workflows/maven.yml
34lines · modecode
| 1 | name: GCToolKit build with Maven |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | schedule: |
| 6 | - cron: 0 0 * * * |
| 7 | push: |
| 8 | branches: [ main ] |
| 9 | paths-ignore: |
| 10 | - '**.md' |
| 11 | pull_request: |
| 12 | branches: [ main ] |
| 13 | paths-ignore: |
| 14 | - '**.md' |
| 15 | |
| 16 | jobs: |
| 17 | build: |
| 18 | runs-on: ubuntu-latest |
| 19 | strategy: |
| 20 | matrix: |
| 21 | java: [11, 17] |
| 22 | |
| 23 | steps: |
| 24 | - uses: actions/checkout@v2 |
| 25 | |
| 26 | - name: Set up JDK ${{ matrix.java }} |
| 27 | uses: actions/setup-java@v2 |
| 28 | with: |
| 29 | java-version: ${{ matrix.java }} |
| 30 | distribution: 'adopt' |
| 31 | cache: 'maven' |
| 32 | |
| 33 | - name: Build with Maven |
| 34 | run: ./mvnw -B verify --file pom.xml |
| 35 | |