0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-09 20:41:46 +02:00

chore: remove local CI workflow (not for upstream)

This Gitea Actions workflow was used for local compliance testing on
git.epid.co and should not be part of the upstream PR.
This commit is contained in:
Epid 2026-04-02 11:24:52 +03:00
parent 10f8e1ec06
commit 99ad25bdd0

View File

@ -1,213 +0,0 @@
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
- run: make lint-backend
env:
TAGS: bindata sqlite sqlite_unlock_notify
- name: cleanup
if: always()
run: go clean -cache -testcache 2>/dev/null || true
lint-go-windows:
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
- run: make lint-go-windows lint-go-gitea-vet
env:
TAGS: bindata sqlite sqlite_unlock_notify
GOOS: windows
GOARCH: amd64
- name: cleanup
if: always()
run: go clean -cache -testcache 2>/dev/null || true
lint-go-gogit:
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
- run: make lint-go
env:
TAGS: bindata gogit sqlite sqlite_unlock_notify
- name: cleanup
if: always()
run: go clean -cache -testcache 2>/dev/null || true
checks-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
- run: make --always-make checks-backend
- name: cleanup
if: always()
run: go clean -cache -testcache 2>/dev/null || true
lint-spell:
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 lint-spell
- name: cleanup
if: always()
run: go clean -cache -testcache 2>/dev/null || true
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
- run: make lint-frontend
- run: make checks-frontend
- run: make test-frontend
- run: make frontend
- name: cleanup
if: always()
run: rm -rf dist/ node_modules/.cache 2>/dev/null || true
lint-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: make deps-frontend
- run: make lint-json
lint-swagger:
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
- run: make lint-swagger
lint-yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv python install 3.12
- run: make deps-py
- run: make lint-yaml
lint-templates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv python install 3.12
- 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-py
- run: make deps-frontend
- run: make lint-templates
docs:
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
- run: make lint-md
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
- run: go build -o gitea_no_gcc
- name: cleanup-before-cross-compile
run: go clean -cache && rm -f gitea_no_gcc
- name: build-backend-arm64
run: make backend
env:
GOOS: linux
GOARCH: arm64
TAGS: bindata gogit
- name: cleanup-arm64
run: go clean -cache && rm -f gitea
- name: build-backend-windows
run: go build -o gitea_windows
env:
GOOS: windows
GOARCH: amd64
TAGS: bindata gogit
- name: cleanup-windows
run: go clean -cache && rm -f gitea_windows
- name: build-backend-386
run: go build -o gitea_linux_386
env:
GOOS: linux
GOARCH: 386
- name: cleanup
if: always()
run: go clean -cache -testcache && rm -f gitea_linux_386 2>/dev/null || true
actions:
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 lint-actions
- name: cleanup
if: always()
run: go clean -cache -testcache 2>/dev/null || true