Skip to content

refactor: use telemetry feedback API (#647) #1140

refactor: use telemetry feedback API (#647)

refactor: use telemetry feedback API (#647) #1140

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
configure_sonar:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Save Sonar config on PR
run: |
mkdir -p ./prInfo
echo ${{ github.event.number }} > ./prInfo/PR
echo ${{ github.base_ref }} > ./prInfo/base_ref
echo ${{ github.head_ref }} > ./prInfo/head_ref
- uses: actions/upload-artifact@v3
with:
name: prInfo
path: prInfo/
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --continue --no-daemon
- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.os }}-test-reports
path: |
build/test-results/**/*.xml
build/jacoco/