diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c29b5de..be42555 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,12 +9,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.18 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + check-latest: true + cache: true - - name: Build - run: make + - name: Build + run: make diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a00b901..dbd32fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,10 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 + with: + go-version-file: go.mod + check-latest: true + cache: true - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4