Error handling fixed #12
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 Code Formatting | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: "**" | |
jobs: | |
test: | |
name: Check Code Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install packages | |
run: npm i | |
- name: Prettier | |
run: npm run prettier | |
- name: Lint | |
run: npm run lint |