Skip to content

tests: Remove numeric constants #27502

tests: Remove numeric constants

tests: Remove numeric constants #27502

Workflow file for this run

# 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.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@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.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@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
args: build --config .github/goreleaser-cross-compiler-test.yml --id 32-bit-arch --snapshot