From 3cbe034ad563bd3f01eee670b41380f1f2224e7f Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 6 Sep 2024 13:41:35 +0200 Subject: [PATCH 1/3] ci: Add Go 1.23.x - remove Go 1.20.x --- .github/workflows/test.yml | 2 +- .github/workflows/validate.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 973b3ff2..563b9d9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: test: strategy: matrix: - go-version: [1.20.x, 1.21.x, 1.22.x] + go-version: [1.21.x, 1.22.x, 1.23.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} timeout-minutes: 10 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 8758876e..eb5b2e5f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -21,7 +21,7 @@ jobs: linters: strategy: matrix: - go-version: [1.22.x] + go-version: [1.23.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} timeout-minutes: 10 @@ -35,5 +35,5 @@ jobs: - name: lint uses: golangci/golangci-lint-action@v3 with: - version: v1.57.2 + version: v1.60.3 args: --print-resources-usage --timeout=10m --verbose From 4a2c9ae9435faeac6a937c2f1d45e37f9f2945c7 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 6 Sep 2024 17:38:03 +0200 Subject: [PATCH 2/3] Ignore ast package deprecation --- .github/workflows/test.yml | 4 ++-- .github/workflows/validate.yml | 6 +++--- .golangci.yml | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 563b9d9b..2a26d588 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,9 +26,9 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 10 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: test run: make ci diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index eb5b2e5f..e5f9b277 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -26,14 +26,14 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 10 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: prepare generated code run: make prepare - name: lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: v1.60.3 args: --print-resources-usage --timeout=10m --verbose diff --git a/.golangci.yml b/.golangci.yml index 4c44c5fa..f038fe43 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,9 @@ linters: disable: - errcheck + +linters-settings: + staticcheck: + checks: + - all + - '-SA1019' # We use the ast package. From 94ce41d7951cd66e6033ef319a7e24da0edfc9dc Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 6 Sep 2024 17:41:43 +0200 Subject: [PATCH 3/3] Upgrade tinygo --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 00e528a6..a4eda24b 100644 --- a/Makefile +++ b/Makefile @@ -55,8 +55,8 @@ ci: prepare if [ `arch` == 'x86_64' ]; then \ sudo apt-get -y -q update; \ sudo apt-get -y -q install build-essential; \ - wget -q https://github.com/tinygo-org/tinygo/releases/download/v0.32.0/tinygo_0.32.0_amd64.deb; \ - sudo dpkg -i tinygo_0.32.0_amd64.deb; \ + wget -q https://github.com/tinygo-org/tinygo/releases/download/v0.33.0/tinygo_0.33.0_amd64.deb; \ + sudo dpkg -i tinygo_0.33.0_amd64.deb; \ export PATH=$$PATH:/usr/local/tinygo/bin; \ fi go test -v ./... ./_generated