mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
84 lines
1.8 KiB
YAML
84 lines
1.8 KiB
YAML
name: Clippy
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/clippy.yml"
|
|
- "tools/**/*"
|
|
- "examples/**/*"
|
|
- "packages/**/*"
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
feature-soundness:
|
|
name: Feature Soundness
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
profile:
|
|
- dev
|
|
- release
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup toolchain
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Lint feature soundness
|
|
if: matrix.profile == 'dev'
|
|
run: bash ../../ci/feature-soundness.sh
|
|
working-directory: packages/yew
|
|
|
|
- name: Lint feature soundness
|
|
if: matrix.profile == 'release'
|
|
run: bash ../../ci/feature-soundness-release.sh
|
|
working-directory: packages/yew
|
|
|
|
- name: Run release clippy
|
|
if: matrix.profile == 'release'
|
|
run: |
|
|
ls packages | xargs -I {} \
|
|
cargo clippy \
|
|
-p {} \
|
|
--all-targets \
|
|
--all-features \
|
|
--workspace \
|
|
-- -D warnings
|
|
|
|
clippy:
|
|
name: Clippy Workspace
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
toolchain:
|
|
- stable
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup toolchain
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ matrix.toolchain }}
|
|
components: clippy
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Run clippy
|
|
run: |
|
|
cargo clippy \
|
|
--all-targets \
|
|
--all-features \
|
|
--workspace \
|
|
-- -D warnings
|