Skip to content

Configure Spring Boot Actuator with Micrometer and Grafana #6

Configure Spring Boot Actuator with Micrometer and Grafana

Configure Spring Boot Actuator with Micrometer and Grafana #6

Workflow file for this run

name: Maven Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Run tests with Maven
run: ./mvnw test
- name: Generate test report
if: always()
run: ./mvnw surefire-report:report
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: target/surefire-reports/