add new data sources to aws_bedrockagent_data_source #27171
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: 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 3 | |
runs-on: custom-linux-large | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
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@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | |
with: | |
version: "${{ steps.golangci-lint-version.outputs.version }}" | |
args: --config .ci/.golangci.yml | |
golangci-lintb: | |
name: 2 of 3 | |
needs: [golangci-linta] | |
runs-on: custom-linux-xl | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
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@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.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. Higher values mean it runs faster but more likely to OOM, exit 137. | |
# ref: https://golangci-lint.run/product/performance/ | |
GOGC: "150" # 100 is the default value | |
golangci-lintc: | |
name: 3 of 3 | |
needs: [golangci-linta] | |
runs-on: custom-linux-xl | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
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@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | |
with: | |
version: "${{ steps.golangci-lint-version.outputs.version }}" | |
args: --config .ci/.golangci3.yml | |
env: | |
# Trigger garbage collection more frequently to reduce the likelihood | |
# of OOM errors. Higher values mean it runs faster but more likely to OOM, exit 137. | |
# ref: https://golangci-lint.run/product/performance/ | |
GOGC: "140" # 100 is the default value |