💄Red alert message for illegal userinput when registrating #51
Workflow file for this run
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: Check if code is formatted with Prettier and no warnings from eslint | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
jobs: | |
code_style: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
name: Configure npm caching | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Run prettier and eslint | |
run: | | |
yarn install | |
yarn run prettier --check './src' | |
yarn run eslint -c .config/.eslintrc.json --max-warnings=0 './src' |