Skip to content

fix(deps): bump io.opentelemetry:opentelemetry-api-incubator from 1.42.0-alpha to 1.42.1-alpha #2934

fix(deps): bump io.opentelemetry:opentelemetry-api-incubator from 1.42.0-alpha to 1.42.1-alpha

fix(deps): bump io.opentelemetry:opentelemetry-api-incubator from 1.42.0-alpha to 1.42.1-alpha #2934

Workflow file for this run

# This workflow builds, tests, and releases the modules.
name: Java CI
on:
push:
branches:
- main
pull_request:
jobs:
# build library
build:
runs-on: ${{ matrix.os }}
strategy:
# always run all tests to avoid having different amounts of tests.
fail-fast: false
matrix:
java_version: [ '17', '21' ]
os: [ 'ubuntu-latest' ]
timeout-minutes: 60
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
with:
fetch-depth: 0 # fetch commit log so that Sonar is able to assign committers to issues
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}
cache: 'gradle'
- name: Test with Gradle
uses: nick-fields/retry@v3.0.0
with:
timeout_minutes: 30
max_attempts: 5
retry_wait_seconds: 10
warning_on_retry: false
command: ./gradlew --parallel --continue check -x spotlessCheck
- name: Generate Test Report
if: always()
run: ./gradlew -x test testReport codeCoverageReport
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # tag=v3
if: always()
with:
name: ${{ matrix.os }}-${{ matrix.java_version }}-test-results
path: |
build/reports/
*/build/test-results/**/*.xml
*/build/classes/
retention-days: 7
publish-test-results:
name: "Publish Unit Tests Results"
timeout-minutes: 60
needs: build
runs-on: ubuntu-latest
# Don't run for forks and dependabot because of missing secrets
if: (success() || failure()) && !(github.event.pull_request && github.event.pull_request.head.repo.fork) && github.actor != 'dependabot[bot]'
steps:
- name: Download Artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # tag=v3
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@82082dac68ad6a19d980f8ce817e108b9f496c2a # tag=v2.17.1
with:
junit_files: "**/build/test-results/**/*.xml"
semantic-release:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: build
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 14
- name: Set up JDK 17
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Install Semantic release
run: |
sudo npm install -g \
semantic-release@18.0.0 \
@semantic-release/git@10.0.0 \
@semantic-release/release-notes-generator@10.0.2 \
@semantic-release/github@8.0.0
- name: sda-spring-boot-commons-app token
if: "!(github.event.pull_request && github.event.pull_request.head.repo.fork) && github.actor != 'dependabot[bot]'"
id: app-token
uses: getsentry/action-github-app-token@a0061014b82a6a5d6aeeb3b824aced47e3c3a7ef # tag=v3.1.0
with:
app_id: ${{ secrets.GH_PUBLISH_APP_ID }}
private_key: ${{ secrets.GH_PUBLISH_APP_PRIVATE_KEY }}
- name: Release and Publish
run: semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}