Skip to content

setup rust ci testing #79

setup rust ci testing

setup rust ci testing #79

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install app dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test
test-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src-tauri
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- name: Run check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings