From bb10f7a642f79133a4a2cb200d2c47e4909581fb Mon Sep 17 00:00:00 2001 From: Levko Kravets Date: Tue, 9 Apr 2024 19:11:18 +0300 Subject: [PATCH] Update Github workflows to fix deprecation warnings (#203) ![image](https://github.com/databricks/databricks-sql-go/assets/12139186/7e111bdb-3644-431e-aeb4-c4a8d92787a6) --------- Signed-off-by: Levko Kravets --- .github/workflows/go.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b2425a2..3f9cfa6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,12 +13,18 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Set up Go Toolchain + uses: actions/setup-go@v5 + with: + go-version: '1.20.x' + cache: false - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: - version: v1.51 + version: 'v1.51' build-and-test: name: Test and Build strategy: @@ -29,15 +35,16 @@ jobs: steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go Toolchain - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + cache: false - name: Cache Go artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/go/pkg/mod