Files
server-config/.github/workflows/lint.yml
T
Floweynt 0bda3d3712
flake-check / flake-check (push) Successful in 17m3s
lint / lint (push) Canceled after 0s
diff-tag / dix (push) Successful in 8m9s
ci: fix reviewdog
2026-09-10 19:30:46 -05:00

37 lines
843 B
YAML

name: lint
on:
pull_request:
push:
branches: [master]
permissions:
contents: read
pull-requests: write
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: nix
steps:
- uses: actions/checkout@v4
- name: run linters
run: nix run -L .#ci -- lint . "$RUNNER_TEMP/findings"
- name: report findings
if: always()
env:
REVIEWDOG_GITEA_API_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_ADDRESS: ${{ github.server_url }}
run: |
if [ "${{ github.event_name }}" = pull_request ]; then
nix run -L .#ci -- lint-report gitea-pr-review "$RUNNER_TEMP/findings"
else
nix run -L .#ci -- lint-summary "$RUNNER_TEMP/findings" \
| tee -a "$GITHUB_STEP_SUMMARY"
fi