Skip to content

Commit

Permalink
feat(updater): refactor and improvements (#431)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
  • Loading branch information
3 people authored Aug 7, 2023
1 parent 84133b5 commit 4ab90f0
Show file tree
Hide file tree
Showing 18 changed files with 1,229 additions and 2,726 deletions.
6 changes: 6 additions & 0 deletions .changes/updater-plugin-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"updater": minor
"updater-js": minor
---

The updater plugin is recieving a few changes to improve consistency and ergonomics of the Rust and JS APIs
54 changes: 54 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT

name: integration tests

on:
push:
branches:
- v1
- v2
paths:
- ".github/workflows/integration-tests.yml"
- "plugins/updater/src/**"
pull_request:
branches:
- v1
- v2
paths:
- ".github/workflows/integration-tests.yml"
- "plugins/updater/src/**"

jobs:
run-integration-tests:
runs-on: ${{ matrix.platform }}

strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: install Linux dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev libfuse2
- uses: Swatinem/rust-cache@v2

- name: install Tauri CLI
run: cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch dev

- name: run integration tests
run: cargo test --test '*' -- --ignored
5 changes: 5 additions & 0 deletions .github/workflows/test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ jobs:
working-directory: examples/api
run: mkdir dist

- name: Downgrade crates with MSRV conflict
# The --precise flag can only be used once per invocation.
run: |
cargo update -p time@0.3.24 --precise 0.3.23
- name: test ${{ matrix.package }}
if: matrix.package != 'tauri-plugin-sql'
uses: actions-rs/cargo@v1
Expand Down
164 changes: 86 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions plugins/updater/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ percent-encoding = "2"
semver = { version = "1", features = [ "serde" ] }
futures-util = "0.3"
tempfile = "3"
flate2 = "1"
zip = "0.6"
tar = "0.4"
ignore = "0.4"

[target."cfg(target_os = \"windows\")".dependencies]
zip = { version = "0.6", default-features = false }

[dev-dependencies]
mockito = "0.31"
tokio-test = "0.4.2"

[features]
native-tls = [ "reqwest/native-tls" ]
Expand Down
Loading

0 comments on commit 4ab90f0

Please sign in to comment.