Skip to content

Commit

Permalink
add prettier workflow too
Browse files Browse the repository at this point in the history
  • Loading branch information
claireolmstead committed Dec 2, 2024
1 parent e82aa1a commit 35efa61
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Prettier checks
on:
push:
branches: ['main', '67-add-svelte-check-to-github-workflows---styleguide']
pull_request:
branches: ['main', '67-add-svelte-check-to-github-workflows---styleguide']

jobs:
prettier:
name: Prettier

runs-on: ubuntu-latest

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

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Check formatting with Prettier
run: npm run prettier:check:ci

0 comments on commit 35efa61

Please sign in to comment.