From 96bdc09d14f6820917473dd3bb6939d546e69d01 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 31 May 2025 22:54:06 +0200 Subject: [PATCH] chore(ci): add golangci-lint --- .gitea/workflows/golangci-lint.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/golangci-lint.yaml diff --git a/.gitea/workflows/golangci-lint.yaml b/.gitea/workflows/golangci-lint.yaml new file mode 100644 index 0000000..9ec29e4 --- /dev/null +++ b/.gitea/workflows/golangci-lint.yaml @@ -0,0 +1,24 @@ +name: Golang CI lint + +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + push: + branches: [ '**' ] + tags-ignore: [ '**' ] + +permissions: + contents: read + +jobs: + golangci: + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4.2.2 + - uses: actions/setup-go@v5.5.0 + with: + go-version: stable + - uses: golangci/golangci-lint-action@v8 + with: + version: v2.1 \ No newline at end of file