From 296f0cb1352294a83f3adc179f8f3a4599c3ac21 Mon Sep 17 00:00:00 2001 From: Pior Bastida Date: Sun, 10 Apr 2022 16:33:54 -0400 Subject: [PATCH] Upgrade the Github actions --- .github/workflows/go.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fc25d11..550ea6d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,7 +12,7 @@ jobs: name: golang lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: @@ -22,7 +22,11 @@ jobs: name: go mod tidy check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '1.17' + check-latest: true - run: go mod tidy - run: git diff --exit-code -- go.mod go.sum @@ -30,8 +34,9 @@ jobs: name: golang test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: - go-version: "1.14.x" + go-version: '1.17' + check-latest: true - run: go test -cover -race ./...