Skip to content

prettier changes

prettier changes #3

Workflow file for this run

name: Runs Preetier Check, Lint Check, Build Check
# first runs prettier and lint checks then builds the code.
on: [pull_request, push]
jobs:
build-project:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install Dependencies
run: npm install
- name: Code Formatting Check #Runs Prettier Script
run: npm run prettier
- name: Linting Check #Runs ESLint Script
run: npm run lint
- name: Build #Build the project
run: npm run build
- name: Check Build Status
run: |
if [ $? -eq 0 ]; then
echo "Build successful!"
else
echo "Build failed!"
exit 1
fi