Skip to content

feat: Add code quality check workflow #8

feat: Add code quality check workflow

feat: Add code quality check workflow #8

Workflow file for this run

name: Code Quality Check
on:
pull_request:
branches:
- main
defaults:
run:
working-directory: ./frontend
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci # Clean install packages
- run: npx prettier . --check # Run prettier