From cf603b486958c1cce1936d5be2c4ccd83d599a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=91=D0=B0?= =?UTF-8?q?=D0=B4=D1=8F=D0=B5=D0=B2?= Date: Thu, 17 Oct 2024 23:46:32 +0700 Subject: [PATCH] =?UTF-8?q?workflow:=20=D0=BB=D0=B8=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D1=80=D1=8B=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B2=20=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 16 ++++++++-------- .gitea/workflows/release.yaml | 17 +++++++++++++++-- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index adb123b..df567b4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -32,6 +32,14 @@ jobs: go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest make vendor + - name: lint + run: make lint + + - name: golangci-lint + uses: https://github.com/golangci/golangci-lint-action@v6 + with: + version: v1.60 + - name: test run: make test @@ -61,14 +69,6 @@ jobs: path: out/bin/* overwrite: true - - name: lint - run: make lint - - - name: golangci-lint - uses: https://github.com/golangci/golangci-lint-action@v6 - with: - version: v1.60 - build_windows: runs-on: windows defaults: diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index f02d148..5aa1e6f 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -47,10 +47,23 @@ jobs: overwrite: true - name: set-up dependencies - run: make clean vendor + run: | + go install github.com/kisielk/errcheck@latest + go install honnef.co/go/tools/cmd/staticcheck@latest + go install github.com/sashamelentyev/usestdlibvars@latest + go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest + make vendor + + - name: lint + run: make lint + + - name: golangci-lint + uses: https://github.com/golangci/golangci-lint-action@v6 + with: + version: v1.60 - name: test - run: make lint test + run: make test - name: build amd64 package id: build-amd