loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix `lint-swagger` action (#25593)

- Add detection for swagger changes and run `lint-swagger` on it
- Remove `lint-swagger` from `lint-frontend`
- Remove `lint-md` from `lint-frontend`

authored by

silverwind and committed by
GitHub
fdf71460 64f2d702

+20 -2
+6
.github/workflows/files-changed.yml
··· 15 15 value: ${{ jobs.detect.outputs.templates }} 16 16 docker: 17 17 value: ${{ jobs.detect.outputs.docker }} 18 + swagger: 19 + value: ${{ jobs.detect.outputs.swagger }} 18 20 19 21 jobs: 20 22 detect: ··· 27 29 actions: ${{ steps.changes.outputs.actions }} 28 30 templates: ${{ steps.changes.outputs.templates }} 29 31 docker: ${{ steps.changes.outputs.docker }} 32 + swagger: ${{ steps.changes.outputs.swagger }} 30 33 steps: 31 34 - uses: actions/checkout@v3 32 35 - uses: dorny/paths-filter@v2 ··· 63 66 - "Dockerfile.rootless" 64 67 - "docker/**" 65 68 - "Makefile" 69 + 70 + swagger: 71 + - "templates/swagger/v1_json.tmpl"
+12
.github/workflows/pull-compliance.yml
··· 39 39 - run: make deps-py 40 40 - run: make lint-templates 41 41 42 + lint-swagger: 43 + if: needs.files-changed.outputs.swagger == 'true' 44 + needs: files-changed 45 + runs-on: ubuntu-latest 46 + steps: 47 + - uses: actions/checkout@v3 48 + - uses: actions/setup-node@v3 49 + with: 50 + node-version: 20 51 + - run: make deps-frontend 52 + - run: make lint-swagger 53 + 42 54 lint-go-windows: 43 55 if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' 44 56 needs: files-changed
+2 -2
Makefile
··· 360 360 lint-fix: lint-frontend-fix lint-backend-fix 361 361 362 362 .PHONY: lint-frontend 363 - lint-frontend: lint-js lint-css lint-md lint-swagger 363 + lint-frontend: lint-js lint-css 364 364 365 365 .PHONY: lint-frontend-fix 366 - lint-frontend-fix: lint-js-fix lint-css-fix lint-md lint-swagger 366 + lint-frontend-fix: lint-js-fix lint-css-fix 367 367 368 368 .PHONY: lint-backend 369 369 lint-backend: lint-go lint-go-vet lint-editorconfig