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 3211aff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/bench-pr-new-linter.yml
Original file line number Diff line number Diff line change
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 3211aff

Please sign in to comment.