Skip to content

github-actions(deps): bump actions/setup-java from 2 to 4 #8

github-actions(deps): bump actions/setup-java from 2 to 4

github-actions(deps): bump actions/setup-java from 2 to 4 #8

name: Check formatting
on: [ pull_request ]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
cache: maven
- name: Check formatting in core
env:
# This is to make sure Maven don't timeout fetching dependencies. See: https://github.com/actions/virtual-environments/issues/1499
MAVEN_BUILD_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125
run: mvn speedy-spotless:check -Pdefault -Pjdk11 --no-transfer-progress --update-snapshots -q -f ./dhis-2/pom.xml $MAVEN_BUILD_OPTS
- name: Check formatting in web
env:
# This is to make sure Maven don't timeout fetching dependencies. See: https://github.com/actions/virtual-environments/issues/1499
MAVEN_BUILD_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=125
run: mvn speedy-spotless:check -Pdefault -Pjdk11 --no-transfer-progress --update-snapshots -q -f ./dhis-2/dhis-web/pom.xml $MAVEN_BUILD_OPTS