Tech debt: Migrate (more) s3control
resources to AWS SDK for Go v2
#14723
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
# Continuous integration handling for GoReleaser | |
name: GoReleaser CI | |
on: | |
push: | |
branches: | |
- main | |
- 'release/**' | |
pull_request: | |
paths: | |
- .github/workflows/goreleaser-ci.yml | |
- .goreleaser.yml | |
- go.sum | |
- main.go | |
- internal/** | |
- names/** | |
- skaff/** | |
- tools/** | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
goreleaser: ${{ steps.filter.outputs.goreleaser }} | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 | |
id: filter | |
with: | |
filters: | | |
goreleaser: | |
- '.github/workflows/goreleaser-ci.yml' | |
- '.goreleaser.yml' | |
check: | |
needs: changes | |
if: ${{ needs.changes.outputs.goreleaser == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: go.mod | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
continue-on-error: true | |
timeout-minutes: 2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | |
- name: goreleaser check | |
uses: goreleaser/goreleaser-action@5fdedb94abba051217030cc86d4523cf3f02243d # v4.6.0 | |
with: | |
args: check | |
build-32-bit: | |
# Run a single compiler check for 32-bit architecture (FreeBSD/ARM) | |
# Ref: https://github.com/hashicorp/terraform-provider-aws/issues/8988 | |
runs-on: [custom, linux, small] | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: go.mod | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
continue-on-error: true | |
timeout-minutes: 2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | |
- name: goreleaser build | |
uses: goreleaser/goreleaser-action@5fdedb94abba051217030cc86d4523cf3f02243d # v4.6.0 | |
with: | |
args: build --config .github/goreleaser-cross-compiler-test.yml --id 32-bit-arch --snapshot |