Dev to Main v0.3.5 #152
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: Lint | |
on: | |
push: | |
branches: [dev, main] | |
pull_request: | |
branches: [dev, main] | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Prettier Check | |
uses: actionsx/prettier@v2 | |
with: | |
args: --check . | |
- name: Prettier Result | |
if: failure() | |
run: | | |
echo "Prettier check failed. Please run 'npm run format:fix' to format your code." | |
exit 1 |