ci: run checks on ci
This commit is contained in:
parent
8852453758
commit
b5ab054d74
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/ci.yml
Normal file
26
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
static-analysis:
|
||||
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
|
||||
- name: Validate shell scripts
|
||||
run: pipx run pre-commit run shellcheck -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 }}
|
Loading…
Reference in a new issue