Skip to content

Build for PR 1

Build for PR 1 #2

Workflow file for this run

name: 'Build Pull Request'
run-name: Build for PR ${{ github.event.pull_request.number }}
on:
pull_request:
types:
- synchronize
- opened
- ready_for_review
- reopened
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- java: 8
gradle: 7.4
- java: 11
gradle: 7.4
- java: 17
gradle: 7.4
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1000
fetch-tags: true
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ matrix.gradle }}
- name: Build
run: gradle -x test build
- name: Test
run: gradle test