build(deps): upgrade Tauri from beta
to stable
#1012
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: Format, Lint, Test | |
on: | |
push: | |
branches: ["dev"] | |
pull_request: | |
branches: ["dev"] | |
jobs: | |
unime_frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'pnpm' | |
- name: Install NPM dependencies in project root and workspaces | |
run: pnpm i --frozen-lockfile | |
- name: Format | |
run: pnpm format:check | |
- name: Lint | |
run: pnpm lint | |
- name: Test | |
run: pnpm test | |
unime_core: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install dependencies | |
working-directory: ./unime/src-tauri | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Format | |
working-directory: ./unime/src-tauri | |
run: cargo fmt -- --check | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'pnpm' | |
- name: Build frontend | |
# Otherwise linting will fail with error: The `distDir` configuration is set to `"../build"` but this path doesn't exist. | |
run: pnpm i --frozen-lockfile && pnpm build | |
env: | |
PUBLIC_DEV_MODE_MENU_EXPANDED: false | |
PUBLIC_STYLE_SAFE_AREA_INSETS: false | |
- name: Lint | |
working-directory: ./unime/src-tauri | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Test | |
working-directory: ./unime/src-tauri | |
run: cargo test | |
identity_wallet: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install dependencies | |
working-directory: ./identity-wallet | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Format | |
working-directory: ./identity-wallet | |
run: cargo fmt -- --check | |
- name: Lint | |
working-directory: ./identity-wallet | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Test | |
working-directory: ./identity-wallet | |
run: cargo test |