fix(deps): update rust crate serde_json to v1.0.128 #237
Workflow file for this run
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: 'Tests on PR' | |
on: [pull_request] | |
jobs: | |
js-build-pretier: | |
name: Check build & Prettier | |
runs-on: ubuntu-latest | |
concurrency: | |
group: tests-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-node-modules-v1 | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Yarn install | |
run: yarn --prefer-offline --frozen-lockfile --network-timeout 1000000 install | |
- name: Check JS build | |
run: yarn build | |
- name: Run prettier | |
run: | | |
yarn lint:prettier | |
test-tauri: | |
name: Test Tauri build | |
runs-on: windows-latest | |
concurrency: | |
group: tests-tauri-build-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-node-modules-v1 | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
# - name: Update to Evergreen WebView2 Runtime | |
# shell: pwsh | |
# # See here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/ | |
# # https://github.com/actions/runner-images/issues/9538 | |
# run: | | |
# Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' -OutFile 'setup.exe' | |
# Start-Process -FilePath setup.exe -Verb RunAs -Wait | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: Yarn install FE dependencies | |
run: yarn --prefer-offline --frozen-lockfile --network-timeout 1000000 install | |
- name: Build tauri App | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
- name: Run Rust tests | |
run: | | |
cd src-tauri | |
cargo test --package coh3-stats-desktop-app --lib | |
- name: Install tauri-driver | |
run: | | |
cargo install tauri-driver | |
# - name: debug commands | |
# run: | | |
# dir src-tauri/target/release/ | |
# If the test fails with invalid MS Edge browser it's highly possible a bug at GitHub | |
# https://github.com/actions/runner-images/issues/9538 | |
- name: Run e2e tests | |
run: | | |
yarn test:e2e | |
- name: Upload Tauri app artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coh3-stats-desktop-app | |
path: src-tauri/target/release/bundle/* |