Update package.json #31
This file contains hidden or 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: Code checks | |
| on: | |
| push: | |
| branches: [ "master", "main" ] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [ "master", "main" ] | |
| jobs: | |
| checks: | |
| name: Code checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: npm install --ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Prettier | |
| run: npm run format-check | |
| # TODO: type checks... |