Skip to content

r/aws_ecs_task_definition: Restore container_definitions serialization fidelity #23408

r/aws_ecs_task_definition: Restore container_definitions serialization fidelity

r/aws_ecs_task_definition: Restore container_definitions serialization fidelity #23408

Workflow file for this run

name: golangci-lint Checks
on:
push:
branches:
- main
- 'release/**'
pull_request:
paths:
- .github/workflows/golangci-lint.yml
- .ci/.golangci*.yml
- .ci/tools/**
- internal/**
- go.sum
- main.go
- names/**
- tools/**
## NOTE: !!!
## When changing these workflows, ensure that the following is updated:
## - Documentation: docs/continuous-integration.md
## - Documentation: docs/makefile-cheat-sheet.md
## - Makefile: ./GNUmakefile
jobs:
golangci-linta:
name: 1 of 2
runs-on: custom-linux-large
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
cache: false
- id: golangci-lint-version
working-directory: .ci/tools
run: >-
echo "version=$(
go list -m all |
grep github.com/golangci/golangci-lint |
awk '{print $2}'
)" >> $GITHUB_OUTPUT
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v3.7.1
with:
version: "${{ steps.golangci-lint-version.outputs.version }}"
args: --config .ci/.golangci.yml
golangci-lintb:
name: 2 of 2
needs: [golangci-linta]
runs-on: custom-linux-xl
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
cache: false
- id: golangci-lint-version
working-directory: .ci/tools
run: >-
echo "version=$(
go list -m all |
grep github.com/golangci/golangci-lint |
awk '{print $2}'
)" >> $GITHUB_OUTPUT
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v3.7.1
with:
version: "${{ steps.golangci-lint-version.outputs.version }}"
args: --config .ci/.golangci2.yml
env:
# Trigger garbage collection more frequently to reduce the likelihood
# of OOM errors.
# ref: https://golangci-lint.run/usage/performance/#memory-usage
GOGC: "50"