Renewed: Improve Styling #2602
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 Pull Requests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run prettier | |
run: npm run format | |
- name: Auto-commit fixes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
add: "['api/*.js', 'api/src/', 'client/']" | |
- name: Run eslint | |
run: npm run lint | |
- name: Run API tests | |
run: npm run api:test | |
- name: Run client tests | |
run: npm run client:test |