take log4j2 down to 2.17.1 (#502) #313
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: push flow | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
gradle-java8: | |
name: Java 8 build | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
with: | |
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag | |
# to figure out what version this is. optimizing this is left as a challenge to future committers | |
fetch-depth: 0 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: create/restore gradle wrapper cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/wrapper | |
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
- name: create/restore gradle cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }} | |
- name: Build with Gradle | |
run: ./gradlew clean build javadoc --stacktrace --warning-mode all --no-daemon --parallel | |
- name: Generate aggregate coverage report | |
run: ./gradlew codeCoverageReport --no-daemon | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./build/reports/jacoco/report.xml | |
- name: Upload coverage to Coveralls | |
env: | |
# github actions not supported out-of-the-box (yet?). see https://github.com/kt3k/coveralls-gradle-plugin | |
CI_NAME: github-actions | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: ./gradlew coveralls --no-daemon | |
# sonarcloud dropped support for java 8. see https://sonarcloud.io/documentation/appendices/end-of-support/ | |
# | |
# - name: Run SonarCloud analysis | |
# env: | |
# sonar.login: ${{ secrets.SONARCLOUD_TOKEN }} | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# run: ./gradlew sonarqube --no-daemon |