Skip to content

Commit

Permalink
add gh workflow to check for prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Oct 24, 2023
1 parent b26ed35 commit 9645f57
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Prettier

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [18.x]

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

- name: Setup node env
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Check prettier formatting
run: npm run format-check

0 comments on commit 9645f57

Please sign in to comment.