2024-10-19 02:08:26 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2024-10-19 03:19:50 +00:00
|
|
|
static-analysis:
|
2024-10-19 02:08:26 +00:00
|
|
|
runs-on: runner-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Linting
|
|
|
|
run: pipx run pre-commit run ruff -a
|
|
|
|
- name: Format
|
|
|
|
run: pipx run pre-commit run ruff-format -a
|
|
|
|
- name: Validate Yaml
|
|
|
|
run: pipx run pre-commit run check-yaml -a
|
2024-10-19 03:19:50 +00:00
|
|
|
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 }}
|