From cdbd6f10c542a53719f945d53b63697b5dc71e93 Mon Sep 17 00:00:00 2001 From: severindellsperger Date: Tue, 26 Aug 2025 17:13:58 +0200 Subject: [PATCH 1/2] add lint action --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..389f3a5 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Go Checks + +on: + pull_request: {} + push: + branches: + - main + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v5 + with: + go-version: '1.24' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.4 \ No newline at end of file From 211ecc784541fb8afa6412e54a940a5c279b9fe7 Mon Sep 17 00:00:00 2001 From: severindellsperger Date: Wed, 27 Aug 2025 14:37:11 +0200 Subject: [PATCH 2/2] add 'go-version-file' to lint pipeline and remove caching --- .github/workflows/lint.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 389f3a5..d8d1d34 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,9 +14,8 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-go@v5 with: - go-version: '1.24' - cache: false + go-version-file: 'go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v8 with: - version: v2.4 \ No newline at end of file + version: v2.4