Skip to content

Refactoring 0.10.0

Refactoring 0.10.0 #25

Workflow file for this run

name: Lint
on:
push:
branches: [ main ]
paths:
- "plugins/*/crates/**/*.rs"
- "plugins/**/crates/**/Cargo.toml"
- "Cargo.toml"
- ".github/workflows/lint.yml"
pull_request:
branches: [ main ]
paths:
- "plugins/*/crates/**/*.rs"
- "plugins/**/crates/**/Cargo.toml"
- "Cargo.toml"
- ".github/workflows/lint.yml"
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: VCS Checkout
uses: actions/checkout@v4
- name: Install latest nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-08-19
components: clippy
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Yarn
uses: borales/actions-yarn@v4
with:
cmd: --cwd plugins/graphql-client/web install
- name: Install Yarn
uses: borales/actions-yarn@v4
with:
cmd: --cwd plugins/graphql-schema-visualization/web install
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.5
- name: Run cargo clippy
run: cargo clippy