Skip to content

Commit

Permalink
feat: formatting checks
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Nov 25, 2024
1 parent ac635d1 commit 4ee151c
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/formatting-checks.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
name: Spell Check
name: Formatting Check

on:
push:

jobs:
spellcheck:
name: Check for spelling errors
format-check:
name: Check for formatting errors
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.10.0

- name: Install cspell
run: bun add cspell
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Run cspell
- name: Install toolchain
run: bun install --frozen-lockfile

- name: Eslint
run: bun run eslint --fix-dry-run

- name: Cspell
run: bun run format:cspell

- name: Prettier
run: bun run prettier --check .

0 comments on commit 4ee151c

Please sign in to comment.