blogue/.forgejo/workflows/ci.yml
Marc Cataford 2b0e4b6932
All checks were successful
/ export-trace (pull_request) Successful in 32s
/ static-analysis (pull_request) Successful in 2m11s
/ static-analysis (push) Successful in 2m6s
/ export-trace (push) Successful in 24s
ci: prevent triggers from overlapping
2024-11-15 23:33:28 -05:00

35 lines
1.1 KiB
YAML

on:
push:
branches: [main]
pull_request:
jobs:
static-analysis:
runs-on: runner-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/astral-sh/setup-uv@v3
- 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
- name: Validate shell scripts
run: pipx run pre-commit run shellcheck -a
- name: Check types
run: |
uv venv
uv pip install .
pipx run pre-commit run pyright -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 }}