diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/push-test.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml index d89c868d..4cac9da3 100644 --- a/.github/workflows/push-test.yml +++ b/.github/workflows/push-test.yml @@ -27,6 +27,34 @@ jobs: - name: Format check run: cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check + clippy: + strategy: + fail-fast: false + matrix: + platform: [ubuntu-22.04, windows-latest] + + name: clippy-check + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + components: clippy + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + - name: Create dist folder (Ubuntu only) + if: matrix.platform == 'ubuntu-22.04' + run: mkdir --parent src-vue/dist + - name: Create dist folder (Windows only) + if: matrix.platform == 'windows-latest' + run: New-Item -ItemType Directory -Force -Path "src-vue\dist" + - name: Run clippy + run: cargo clippy --manifest-path src-tauri/Cargo.toml -- --no-deps --deny warnings + # Ensure committed bindings correct autogen-ts-bindings-check: runs-on: ubuntu-latest |