Skip to content

Bump the open-telemetry group in /v2/awsv1shim with 2 updates #1356

Bump the open-telemetry group in /v2/awsv1shim with 2 updates

Bump the open-telemetry group in /v2/awsv1shim with 2 updates #1356

Workflow file for this run

name: Pull Request Checks
on: [pull_request]
jobs:
go_mod:
name: go mod
runs-on: ubuntu-latest
strategy:
matrix:
path: [".", "tools", "v2/awsv1shim"]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./go.mod
- name: go mod
working-directory: ${{ matrix.path }}
run: |
go mod tidy
git diff --exit-code --quiet -- go.mod go.sum || \
(echo; echo "Unexpected difference in ${{ matrix.path }}/go.mod or ${{ matrix.path }}/go.sum files. Run 'go mod tidy' command or revert any go.mod/go.sum changes and commit."; exit 1)
go_work_sync:
name: go work sync
runs-on: ubuntu-latest
strategy:
matrix:
path: [".", "tools", "v2/awsv1shim"]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./go.mod
- name: go work sync
run: |
go work sync
git diff --exit-code --quiet -- ${{ matrix.path }}/go.mod ${{ matrix.path }}/go.sum || \
(echo; echo "Modules out of sync in ${{ matrix.path }}/. Run 'go mod sync' and 'cd ${{ matrix.path }} && go mod tidy' to bring them in sync."; exit 1)
go_test:
name: go test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./go.mod
- run: |
go test ./...
cd v2/awsv1shim && go test ./...
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./go.mod
- run: cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint
- run: |
golangci-lint run ./...
cd v2/awsv1shim && golangci-lint run ./...
import-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ./go.mod
- run: cd tools && go install github.com/pavius/impi/cmd/impi
# impi runs against the whole directory tree, ignoring modules
- run: impi --local . --scheme stdThirdPartyLocal ./...
semgrep:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- run: semgrep --error --quiet --config .semgrep
env:
REWRITE_RULE_IDS: 0
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
with:
config: ".markdownlint.yml"
args: "./README.md"