Merge pull request #24 from CSC-510-G55/p3/fix/repo #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prettier | |
on: | |
push: | |
branches: [project3] | |
pull_request: | |
branches: [project3] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 # Updated to the latest version | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' # Specify the version of Node.js you need | |
- name: Install Prettier | |
run: npm install --global prettier # Install Prettier globally | |
- name: Run Prettier | |
run: | | |
prettier --check 'frontend/src/**/*.{js,ts,tsx,css}' | |
prettier --check 'backend/recommenderapp/*.py' |