Merge pull request #306 from jdev-org/issue-283 #71
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: Front - Code style checking | |
on: | |
pull_request: | |
push: | |
branches: [develop] | |
jobs: | |
prettier: | |
name: Prettier checking | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- run: npm run prettier-check | |
- name: Prettier Output | |
if: ${{ failure() }} | |
shell: bash | |
run: | | |
echo "ERROR - Some files are note formated." | |
echo "Use 'npm run pretty' to format JS files !" |