Skip to content

Merge pull request #75 from Project-CARPI/celine-branch #29

Merge pull request #75 from Project-CARPI/celine-branch

Merge pull request #75 from Project-CARPI/celine-branch #29

name: Prettier Check
# Trigger the workflow on push or pull request to main
on:
push:
branches:
- main
- main-preview
pull_request:
branches:
- main
jobs:
prettier-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Set up Node.js (needed for Prettier)
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
# Install dependencies
- name: Install dependencies
run: npm install
# Run Prettier to check code formatting
- name: Run Prettier check
run: npm run prettier:check
# If the Prettier check fails, the job will fail