diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 375a997b13d..bed973c521b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -44,8 +44,23 @@ jobs: sudo apt update ./mach bootstrap # TODO: Do GitHub anotaions + - name: Give permission to script + run: | + chmod +x ./etc/ci/clippy-annotation.sh - name: Clippy run: | - ./mach clippy --use-crown --locked -- -- --deny warnings + ./mach clippy --message-format=json --use-crown --locked -- -- --deny warnings | ./etc/ci/clippy-annotation.sh > temp/clippy-output.json + - name: Save PR number + run: | + mkdir -p ./pr + echo ${{ github.event.number }} > ./pr/number + - name: Clippy linter result + uses: actions/upload-artifact@v4.6.1 + with: + name: clippy-lint-result + path: | + temp/clippy-output.json + pr/number + retention-days: 14 - name: Tidy run: ./mach test-tidy --no-progress --all