diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5694a34..6316681 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,7 +23,7 @@ jobs: - run: git fetch --force --tags - uses: actions/setup-go@v4 with: - go-version: stable + go-version-file: go.mod # More assembly might be required: Docker logins, GPG, etc. It all depends # on your needs. - uses: goreleaser/goreleaser-action@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 445d5b9..4533cd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,15 +10,15 @@ on: branches: ["main"] jobs: - build: + build-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version-file: go.mod - name: Build run: go build -v ./...