Fix clippy workflow cache cleanup #2
This file contains hidden or 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: Clippy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: clippy-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| clippy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| env: | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Capture runner Node path | |
| id: runner-node | |
| run: | | |
| echo "dir=$(dirname "$(command -v node)")" >> "$GITHUB_OUTPUT" | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.28.0 | |
| - name: Restore runner Node path | |
| run: echo "${{ steps.runner-node.outputs.dir }}" >> "$GITHUB_PATH" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: | | |
| apps/discourse-listener -> target | |
| apps/telegram-listener -> target | |
| apps/near-balance-listener -> target | |
| - name: Run clippy across Rust services | |
| run: pnpm clippy |