Skip to content

Commit

Permalink
Add prettier check as a github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mcintyre94 committed Nov 2, 2024
1 parent 9a79a98 commit e6728dd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prettier Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Check formatting
run: npx prettier --check .

0 comments on commit e6728dd

Please sign in to comment.