test: configure pipeline to run scale test and publish data to app insights #3846
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 | |
on: | |
merge_group: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
golangci: | |
strategy: | |
fail-fast: false | |
matrix: | |
goos: ["linux", "windows"] | |
goarch: ["amd64", "arm64"] | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
IS_NOT_MERGE_GROUP: ${{ github.event_name != 'merge_group' }} | |
GOOS: ${{ matrix.goos }} | |
GOARCH: ${{ matrix.goarch }} | |
steps: | |
- uses: actions/checkout@v4 | |
if: env.IS_NOT_MERGE_GROUP | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
if: env.IS_NOT_MERGE_GROUP | |
with: | |
go-version-file: go.mod | |
- name: golangci-lint | |
if: env.IS_NOT_MERGE_GROUP | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.55 | |
args: --concurrency 4 --verbose --config=.golangci.yaml --timeout=25m | |
only-new-issues: true | |
skip-cache: true |