diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0727432..7b3d0d6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,6 +23,20 @@ jobs: - name: Run tests run: go test -v ./... + - name: Test goreleaser config + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: check + + - name: Test release build (dry run) + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: build --snapshot --clean --single-target + build-docs: name: Build Documentation runs-on: ubuntu-latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 5a5a4f1..4107040 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,7 +8,7 @@ before: builds: - id: tekmetric-mcp - main: ./main.go + main: ./cmd/tekmetric-mcp binary: tekmetric-mcp env: - CGO_ENABLED=0 @@ -27,9 +27,10 @@ builds: archives: - id: default + formats: ["tar.gz"] format_overrides: - goos: windows - format: zip + formats: ["zip"] name_template: >- {{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }} files: