Skip to content

Commit

Permalink
feat: improve benchmark for new linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 20, 2024
1 parent 2aec666 commit a207105
Showing 1 changed file with 38 additions and 32 deletions.
70 changes: 38 additions & 32 deletions .github/workflows/bench-pr-new-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,37 +38,37 @@ jobs:
repo: goreleaser
- org: gohugoio
repo: hugo
- org: go-gitea
repo: gitea
- org: rclone
repo: rclone
- org: kubernetes
repo: kubernetes
- org: hashicorp
repo: terraform
- org: hashicorp
repo: consul
- org: etcd-io
repo: etcd
- org: go-acme
repo: lego
- org: traefik
repo: traefik
- org: spf13
repo: cobra
- org: google
repo: go-github
- org: beego
repo: beego
- org: grpc
repo: grpc-go
- org: go-delve
repo: delve
- org: cilium
repo: cilium
# CGO inside
- org: pact-foundation
repo: pact-go
# - org: go-gitea
# repo: gitea
# - org: rclone
# repo: rclone
# - org: kubernetes
# repo: kubernetes
# - org: hashicorp
# repo: terraform
# - org: hashicorp
# repo: consul
# - org: etcd-io
# repo: etcd
# - org: go-acme
# repo: lego
# - org: traefik
# repo: traefik
# - org: spf13
# repo: cobra
# - org: google
# repo: go-github
# - org: beego
# repo: beego
# - org: grpc
# repo: grpc-go
# - org: go-delve
# repo: delve
# - org: cilium
# repo: cilium
# # CGO inside
# - org: pact-foundation
# repo: pact-go

steps:
- name: Hyperfine installation
Expand Down Expand Up @@ -108,10 +108,14 @@ jobs:
golangci-lint run -v --issues-exit-code=0 --timeout=20m --show-stats --out-format colored-line-number,line-number:simple.txt --enable-only ${{ fromJson(github.event.issue.body).linter }}
echo "## ${{ matrix.target.org }}/${REPO}" >> /tmp/outputs/${REPO}/perf.md
echo >> /tmp/outputs/${REPO}/perf.md
echo '<details>' >> /tmp/outputs/${REPO}/perf.md
echo >> /tmp/outputs/${REPO}/perf.md
echo '```' >> /tmp/outputs/${REPO}/perf.md
cat simple.txt >> /tmp/outputs/${REPO}/perf.md
echo '```' >> /tmp/outputs/${REPO}/perf.md
echo >> /tmp/outputs/${REPO}/perf.md
echo '</details>' >> /tmp/outputs/${REPO}/perf.md
echo >> /tmp/outputs/${REPO}/perf.md
env:
REPO: ${{ matrix.target.repo }}

Expand All @@ -126,7 +130,9 @@ jobs:
-n '{linter}' --prepare 'golangci-lint cache clean' "golangci-lint run --issues-exit-code=0 --timeout=20m --print-issued-lines=false --enable-only {linter}"
echo >> /tmp/outputs/${REPO}/perf.md
cat perf.md >> /tmp/outputs/${REPO}/perf.md
echo >> /tmp/outputs/${REPO}/perf.
echo >> /tmp/outputs/${REPO}/perf.md
env:
REPO: ${{ matrix.target.repo }}

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit a207105

Please sign in to comment.