chore: re-add cats unit tests, disable sonarcloud for the time being #121
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 Format | |
on: | |
pull_request: | |
branches: [dev] | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: cats-frontend | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
persist-credentials: false | |
- name: CATS-Frontend Prettify code | |
uses: creyD/[email protected] | |
with: | |
prettier_options: --check ./cats-frontend/src/**/*.{js,ts,jsx,tsx,json,css} --ignore-path ./cats-frontend/.prettierignore --config ./cats-frontend/.prettierrc | |
only_changed: True | |
dry: True | |
- name: Formatting issues found | |
if: failure() | |
run: echo "::warning::Code formatting check failed. Try running npm run format in the project that caused the error and commit your changes" |