From 4d046de5b82fb32b7548642428a6c09a2506012d Mon Sep 17 00:00:00 2001 From: kratisto Date: Tue, 27 Jan 2026 00:12:32 +0100 Subject: [PATCH] chore: migrate to gitea --- .gitea/workflows/golangci-lint.yml | 65 ++++++++++++++++++++++++++++++ .gitea/workflows/test.yml | 27 +++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 .gitea/workflows/golangci-lint.yml create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/golangci-lint.yml b/.gitea/workflows/golangci-lint.yml new file mode 100644 index 0000000..56c082c --- /dev/null +++ b/.gitea/workflows/golangci-lint.yml @@ -0,0 +1,65 @@ +name: golangci-lint +on: + push: + pull_request: + +permissions: + contents: read + # Optional: allow read access to pull requests. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # all history for all branches and tags + + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + check-latest: true + cache: false + + - name: golangci-lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.3.1 + + - name: Build + run: | + cd pkg/ginserver + go build -v ./... + + - name: Build + run: | + cd pkg/injector + go build -v ./... + + - name: Build + run: | + cd pkg/logger + go build -v ./... + + - name: Build + run: | + cd pkg/responses + go build -v ./... + + - name: Build + run: | + cd pkg/validator + go build -v ./... + + - name: Build + run: | + cd pkg/postgres + go build -v ./... + + - name: Build + run: | + cd pkg/godog + go build -v ./... \ No newline at end of file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..a29633e --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # all history for all branches and tags + + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + check-latest: true + cache: false + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y make + + - name: Run make check-all + run: make test \ No newline at end of file