chore(deps): update tauri monorepo #772
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
name: CI | |
on: | |
push: | |
paths: | |
- ".github/workflows/ci.yml" | |
- "crates/**/*.rs" | |
- "crates/wire/proto/*.proto" | |
- "**/Cargo.toml" | |
pull_request: | |
paths: | |
- ".github/workflows/ci.yml" | |
- "crates/**/*.rs" | |
- "crates/wire/proto/*.proto" | |
- "**/Cargo.toml" | |
permissions: | |
contents: read | |
env: | |
RUSTFLAGS: -Dwarnings | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre_ci: | |
uses: dtolnay/.github/.github/workflows/pre_ci.yml@master | |
test: | |
name: Rust ${{matrix.rust}} | |
needs: pre_ci | |
if: needs.pre_ci.outputs.continue | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: [ nightly, stable ] | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install native dependecies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.1 protobuf-compiler | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust}} | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo test --workspace | |
env: | |
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}} | |
msrv: | |
name: Rust MSRV | |
needs: pre_ci | |
if: needs.pre_ci.outputs.continue | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install native dependecies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.1 protobuf-compiler | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.73.0 # MSRV | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check --workspace --tests | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install native dependecies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.1 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo clippy --workspace -- -Dclippy::all -Dclippy::pedantic | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rustfmt with nightly toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
cargo-deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Rust Code | |
uses: EmbarkStudios/cargo-deny-action@v1 | |
check-js-licenses: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
cache-dependency-path: "clients/web/pnpm-lock.yaml" | |
- name: Install dependencies | |
run: pnpm install -g license-checker | |
- name: Check JavaScript Licenses | |
working-directory: clients/web | |
run: license-checker --summary --onlyAllow="MIT;Apache-2.0;BSD-2-Clause" --excludePackages="[email protected]" | |
# outdated: | |
# name: Outdated | |
# runs-on: ubuntu-latest | |
# if: github.event_name != 'pull_request' | |
# timeout-minutes: 45 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/install@cargo-outdated | |
# - run: cargo outdated --workspace --exit-code 1 |