Skip to content

chore: update readme #8

chore: update readme

chore: update readme #8

Workflow file for this run

name: Format Code
on:
push:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Format JavaScript
run: bun run lint:fix
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- name: Format Rust
working-directory: ./src-tauri
run: cargo fmt --all
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: format code with bun lint:fix and rustfmt"
branch: ${{ github.head_ref }}