Merge pull request #982 from block-mesh/cache-data-sink-users #2425
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
# https://github.com/LukeMathWalker/zero-to-production/blob/main/.github/workflows/general.yml | |
name: CLIPPY | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
BLOCKMESH_LOG_ENV: ${{ vars.BLOCKMESH_LOG_ENV }} | |
FEED_ORIGIN: FEED_ORIGIN | |
FEED_SELECTOR: FEED_SELECTOR | |
EXT_KEYPAIR: ${{ secrets.EXT_KEYPAIR }} | |
# SCCACHE_GHA_ENABLED: "true" | |
# RUSTC_WRAPPER: "sccache" | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
librsvg2-dev patchelf build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ vars.RUSTC_VERSION }} | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: clippy-sqlx-${{ vars.SQLX_VERSION }} | |
cache-all-crates: true | |
# - name: Sccache Action | |
# uses: Mozilla-Actions/sccache-action@v0.0.5 | |
- name: Linting | |
run: cargo clippy --all --features ssr,hydrate -- -D warnings -A clippy::macro-metavars-in-unsafe |