Add github workflow for MSI tests #454
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Builder - Check and Test Build | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "distributions/otelcol-contrib/**" | |
- "cmd/**" | |
- ".github/**" | |
- "scripts/**" | |
- "Makefile" | |
- "go.mod" | |
- "go.sum" | |
pull_request: | |
branches: [main] | |
paths: | |
- "distributions/otelcol-contrib/**" | |
- "cmd/**" | |
- ".github/**" | |
- "scripts/**" | |
- "Makefile" | |
- "go.mod" | |
- "go.sum" | |
env: | |
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro | |
GORELEASER_PRO_VERSION: v2.4.1 | |
jobs: | |
check-goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Releases Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Core Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
repository: "open-telemetry/opentelemetry-collector" | |
path: ".core" | |
- name: Copy Dockerfile to Core Repo directory | |
run: cp cmd/builder/Dockerfile .core/cmd/builder/Dockerfile | |
- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | |
- uses: anchore/sbom-action/download-syft@fc46e51fd3cb168ffb36c6d1915723c47db58abb # v0.17.7 | |
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
with: | |
platforms: amd64, arm64,ppc64le | |
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
- name: Setup Go | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: ~1.23 | |
- name: Check GoReleaser | |
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 | |
with: | |
distribution: goreleaser-pro | |
version: ${{ env.GORELEASER_PRO_VERSION }} | |
args: check --verbose -f cmd/builder/.goreleaser.yml | |
env: | |
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 | |
with: | |
distribution: goreleaser-pro | |
version: ${{ env.GORELEASER_PRO_VERSION }} | |
args: --snapshot --clean -f cmd/builder/.goreleaser.yml | |
env: | |
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COSIGN_YES: false | |
SKIP_SIGNS: true |