Merge pull request #1969 from zalando/dependabot/maven/nl.jqno.equals… #4426
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 6 * * *" | |
env: | |
# https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080 | |
MAVEN_OPTS: >- | |
-Dhttp.keepAlive=false | |
-Dmaven.wagon.http.pool=false | |
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
profile: [''] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Dependency Review | |
uses: actions/dependency-review-action@v4 | |
with: | |
base-ref: ${{ github.event.pull_request.base.sha || '0.1.0' }} | |
head-ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
vulnerability-check: true | |
license-check: false | |
comment-summary-in-pr: on-failure | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
- name: Compile | |
run: ./mvnw clean package -DskipTests | |
- name: Test | |
run: ./mvnw verify -P "${{ matrix.profile }}" -B | |
- name: Coverage | |
if: github.event_name != 'pull_request' | |
run: ./mvnw -P coverage coveralls:report -B -D repoToken=${{ secrets.COVERALLS_TOKEN }} |