0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-07 01:43:24 +02:00

ci: add compliance workflow

This commit is contained in:
admin 2026-03-30 03:39:35 +00:00
parent 2a902d1857
commit 48ec6f216d

View File

@ -0,0 +1,35 @@
name: PR Compliance
on:
push:
branches: ["ci/**"]
jobs:
lint-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- run: make deps-backend deps-tools
- name: lint-go
run: make lint-go
env:
TAGS: bindata sqlite sqlite_unlock_notify
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: make deps-frontend
- name: lint-js
run: make lint-js
- name: lint-css
run: make lint-css
- name: test-frontend
run: make test-frontend