Added important yarn fix step. #28
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: 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/[email protected] | |
with: | |
dry: True |