From bde1074dae3868ff6fea36d2bed1e35526cfd97b Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Thu, 20 Jun 2024 07:33:28 +0300 Subject: [PATCH] ci: update test workflow --- .github/workflows/tests.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ea549c5..8ac46cb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,19 +9,10 @@ jobs: build_and_test: runs-on: ubuntu-latest steps: - - name: Cache Go Dependencies - # https://github.com/actions/setup-go/issues/130 - # See: https://github.com/actions/cache/blob/95f200e41cfa87b8e07f30196c0df17a67e67786/examples.md#go---modules - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + go-version-file: go.mod - run: go version - run: go build - run: go test ./...