From a81804e296596b80501dde3a8cb33ecd522f8648 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 27 Feb 2024 11:39:51 +0300 Subject: [PATCH 1/2] .github: use minimum required Go version from go.mod For linter job only, port https://github.com/nspcc-dev/neofs-contract/pull/389/commits/e0ec4d24cb992232935a17b59c09927cbc842444. Signed-off-by: Anna Shaleva --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f2e5627ff..4884146d4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: '1.19' + go-version-file: 'go.mod' - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v4 From 8ab08c62210c7397b41b1c7b335f27f0839e2551 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 27 Feb 2024 11:56:32 +0300 Subject: [PATCH 2/2] github: reorder actions/checkout and actions/setup-go steps Otherwise setup-go action won't work with go-version-file. Ref. https://github.com/actions/setup-go/issues/340. Signed-off-by: Anna Shaleva --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4884146d4..e2db7bba7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,10 +18,10 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: