chore: bump typescript from 6.0.3 to 7.0.2 in /src-vue #5582
This file contains hidden or 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: "test-on-push" | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * 0" # Run weekly to cover rust toolchain updates | |
| jobs: | |
| # Ensure version numbers in various places match up | |
| ensure-same-version: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: install dependencies | |
| run: | | |
| pip install toml | |
| - name: Run check | |
| run: | | |
| python3 scripts/check_version_numbers.py | |
| # Ensure correct Rust code formatting | |
| formatting: | |
| name: format-check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: rustfmt | |
| - name: Format check | |
| run: cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check | |
| clippy: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [ubuntu-24.04, windows-latest] | |
| name: clippy-check | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| - name: install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-24.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils | |
| - name: Create dist folder (Ubuntu only) | |
| if: matrix.platform == 'ubuntu-24.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-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: install dependencies (ubuntu only) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils | |
| - name: Move original TypeScript bindings | |
| run: | | |
| cp -r src-tauri/bindings original-bindings | |
| rm -r src-tauri/bindings | |
| - name: Create empty dist folder # Otherwise tests fail | |
| run: mkdir src-vue/dist | |
| - name: Run Tests | |
| run: cargo test --manifest-path src-tauri/Cargo.toml | |
| - name: Compare TypeScript Bindings | |
| run: | | |
| diff -r src-tauri/bindings original-bindings | |
| if [[ $? -ne 0 ]]; then | |
| echo "Generated bindings are different from committed bindings" | |
| exit 1 | |
| fi | |
| test-tauri: | |
| needs: ensure-same-version | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [ubuntu-24.04, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-24.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils | |
| - name: Disable self-updater | |
| shell: bash | |
| run: | | |
| less src-tauri/tauri.conf.json | jq '.plugins.updater.active = false' | jq 'del(.bundle.createUpdaterArtifacts)' > src-tauri/tauri.conf.json.new | |
| rm src-tauri/tauri.conf.json | |
| mv src-tauri/tauri.conf.json.new src-tauri/tauri.conf.json | |
| - uses: Swatinem/rust-cache@v2 # Cache Rust build artifacts | |
| with: | |
| workspaces: | | |
| src-tauri | |
| - name: Install frontend dependencies | |
| run: npm install && cd src-vue && npm install && cd .. | |
| - name: Compile and upload app | |
| uses: tauri-apps/tauri-action@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| with: | |
| uploadWorkflowArtifacts: true |