Files
server-config/.github/workflows/lint.yml
T
Floweynt b62ecdd957
diff-tag / dix (push) Failing after 6s
flake-check / flake-check (push) Failing after 6s
lint / lint (push) Failing after 6s
try fixing gitea ci: v10
2026-09-10 10:00:15 -05:00

37 lines
791 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: pick reporter
run: |
if [ "${{ github.event_name }}" = pull_request ]; then
echo "REPORTER=github-pr-review" >> "$GITHUB_ENV"
else
echo "REPORTER=local" >> "$GITHUB_ENV"
fi
- name: run linters
run: nix run .#ci -- lint . "$RUNNER_TEMP/findings"
- name: report findings
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix run .#ci -- lint-report "$REPORTER" "$RUNNER_TEMP/findings"