Skip to content

Code Formatting

Code Formatting #3

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
paths:
- '**.rs'
- '**.js'
- '**.vue'
- '**.toml'
- '**.yml'
- '**.json'
jobs:
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
components: rustfmt
- uses: taiki-e/install-action@v2
with:
tool: typos-cli
- name: Check Rust Formatting
run: cd src-tauri && cargo +nightly fmt --all -- --check
- name: Run Typos
run: typos
- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
dry: True