Skip to content

fix(deps): update dependency io.prometheus:prometheus-metrics-exporter-httpserver to v1.5.1 #2310

fix(deps): update dependency io.prometheus:prometheus-metrics-exporter-httpserver to v1.5.1

fix(deps): update dependency io.prometheus:prometheus-metrics-exporter-httpserver to v1.5.1 #2310

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up JDK for running Gradle
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 17
- name: Set up gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
cache-read-only: ${{ github.event_name == 'pull_request' }}
- name: Build
run: ./gradlew clean check shadowJar
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- run: java -cp sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample
test-declarative-configuration-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up JDK for running Gradle
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 17
- name: Set up gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
cache-read-only: ${{ github.event_name == 'pull_request' }}
- name: Run declarative-configuration
working-directory: declarative-configuration
run: |
export OTEL_EXPERIMENTAL_CONFIG_FILE=$(pwd)/otel-sdk-config.yaml
../gradlew run
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
# this is not a required check to avoid blocking pull requests if external links break
link-check:
uses: ./.github/workflows/reusable-link-check.yml
markdown-lint-check:
uses: ./.github/workflows/reusable-markdown-lint.yml
required-status-check:
needs:
- build
- test-declarative-configuration-run
- markdown-lint-check
runs-on: ubuntu-latest
if: always()
steps:
- if: >
needs.build.result != 'success' ||
needs.test-declarative-configuration-run.result != 'success' ||
needs.markdown-lint-check.result != 'success'
run: exit 1