diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7edb0be..acf7261 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,23 @@ name: CI -on: [push] +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' jobs: build: runs-on: ubuntu-latest - + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v2 - name: Set up JDK 17 uses: actions/setup-java@v2 with: java-version: '17' - distribution: 'adopt' + distribution: 'temurin' - name: Build with Maven - run: mvn --batch-mode verify + run: ./mvnw --batch-mode clean verify