diff --git a/.github/workflows/build-runtimes.yml b/.github/workflows/build-runtimes.yml new file mode 100644 index 00000000000..49bb49255f4 --- /dev/null +++ b/.github/workflows/build-runtimes.yml @@ -0,0 +1,24 @@ +name: Java CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build with Maven + run: mvn --batch-mode --update-snapshots verify