ci: add tracing
All checks were successful
/ static-analysis (push) Successful in 58s
/ export-trace (push) Successful in 1m4s

This commit is contained in:
Marc 2024-10-18 23:19:50 -04:00
parent 252c30cbac
commit 5fa0b22694
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -1,7 +1,7 @@
on: [push, pull_request]
jobs:
static_analysis:
static-analysis:
runs-on: runner-latest
steps:
- uses: actions/checkout@v4
@ -11,4 +11,14 @@ jobs:
run: pipx run pre-commit run ruff-format -a
- name: Validate Yaml
run: pipx run pre-commit run check-yaml -a
export-trace:
runs-on: runner-latest
needs: [static-analysis]
steps:
- uses: https://forge.karnov.club/marc/opentelemetry-trace-export-forgejo-action@main
with:
otlp-endpoint: "http://otel.home.karnov.club:4318"
forgejo-token: ${{ secrets.GITHUB_TOKEN }}
forgejo-base-url: ${{ env.GITHUB_SERVER_URL }}
run-id: ${{ env.GITHUB_RUN_NUMBER }}
repo-name: ${{ env.GITHUB_REPOSITORY }}