Bump gradle/actions from 6962c6c931ff9effc947259cc1b9c6edba90b9d3 to aa23778d2dc6f6556fcc7164e99babbd8c3134e4 #9198
Workflow file for this run
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Job ubuntu-latest - Java 17 | |
runs-on: ubuntu-latest | |
env: | |
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup Java Version | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@aa23778d2dc6f6556fcc7164e99babbd8c3134e4 # pin@v3 | |
with: | |
gradle-home-cache-cleanup: true | |
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
- name: Run Tests with coverage and Lint | |
run: make preMerge | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v4 | |
with: | |
name: sentry-java | |
fail_ci_if_error: false | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results-build | |
path: | | |
**/build/reports/* | |
- name: Test Report | |
uses: phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e # pin@v15 | |
if: always() | |
with: | |
name: JUnit Build | |
list-suites: 'failed' | |
list-tests: 'failed' | |
path: | | |
**/build/test-results/**/*.xml | |
reporter: java-junit | |
output-to: step-summary | |
fail-on-error: false |