Skip to content

Commit

Permalink
Create CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LegItMate authored Apr 30, 2024
1 parent 9c79fbd commit 708939c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 708939c

Please sign in to comment.