diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..256fdcd3 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,37 @@ +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