name: Build and test for the pull request on: pull_request: types: [opened, synchronize] jobs: build: name: Build and test runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, '[ci skip]')" steps: - name: Checkout sources uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 cache: 'maven' - name: Build with Maven run: mvn -B package