Skip to content

use ps commands instead of jq #272

use ps commands instead of jq

use ps commands instead of jq #272

Workflow file for this run

name: test
on:
push:
pull_request:
branches: [main]
jobs:
check-frontend:
runs-on: [ubuntu-latest]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: install app dependencies and check frontend
run: yarn && yarn lint:check && yarn format:check
test-build:
needs: check-frontend
strategy:
fail-fast: false
runs-on: [windows-latest]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: remove config pubkey
run: |
$json = Get-Content ./src-tauri/tauri.conf.json | ConvertFrom-Json
$json.tauri.key.PSObject.Properties.Remove('plugins')
$json | ConvertTo-Json -Depth 32 | Set-Content ./src-tauri/tauri.conf.json
- name: install app dependencies
run: yarn
- name: test build
uses: tauri-apps/tauri-action@v0
with:
args: "-b msi"