From 48ec6f216d7d94a2b494e09af98cc3661a86179e Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 30 Mar 2026 03:39:35 +0000 Subject: [PATCH] ci: add compliance workflow --- .gitea/workflows/compliance.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/compliance.yml diff --git a/.gitea/workflows/compliance.yml b/.gitea/workflows/compliance.yml new file mode 100644 index 0000000000..341bb6d103 --- /dev/null +++ b/.gitea/workflows/compliance.yml @@ -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