Skip to content

Refactor for otel #1038

Refactor for otel

Refactor for otel #1038

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.4
run_install: false
- name: Get pnpm store directory
id: store-path
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.store-path.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Show pnpm version (before pnpm install)
run: pnpm -v
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package
# The results are reported with the wrong job name. See issue of this GitHub Action:
# https://github.com/ScaCap/action-surefire-report/issues/39
# - name: Publish Test Report
# if: always()
# uses: scacap/action-surefire-report@v1.9.0
# with:
# check_name: Java CI with Maven test report
# report_paths: '**/target/surefire-reports/TEST-*.xml'
# github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@v5.0.0