From 404ade0cb684f24b249166b1749df4a27d79bde9 Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 22 Aug 2022 00:37:33 +0200 Subject: [PATCH 1/2] ci: use action/setup-go's cache --- .github/workflows/test.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e0c2f15c7..51749e534 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,13 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: go-version: '^1.19' check-latest: true + cache: true - uses: actions/checkout@v3 @@ -43,17 +46,12 @@ jobs: runs-on: ${{ matrix.platform }}-latest steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.${{ matrix.go }}.x - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/setup-go@v3 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-1.${{ matrix.go }}.x-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-1.${{ matrix.go }}.x- + go-version: 1.${{ matrix.go }}.x + cache: true - run: | export GOBIN=$HOME/go/bin From 3d58a669e2472914e06b472ecf5cf52bb79614bf Mon Sep 17 00:00:00 2001 From: umarcor Date: Mon, 22 Aug 2022 00:50:42 +0200 Subject: [PATCH 2/2] ci: deprecate Golang 1.14 --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51749e534..4e041c7fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,6 @@ jobs: - ubuntu - macOS go: - - 14 - 15 - 16 - 17