Add initial tests for front-end #85
Workflow file for this run
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: Format | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| prettier: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: "18" | |
| - name: Check formatting | |
| run: | | |
| npm ci | |
| npm run format:check | |
| pycodestyle: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.11" | |
| - name: Check formatting | |
| run: | | |
| pip install pycodestyle | |
| pycodestyle --exclude back-end/server/settings.py,*/migrations/*.py . | |
| tofu: | |
| name: tofu fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: opentofu/setup-opentofu@v1 | |
| - name: Check formatting | |
| run: | | |
| tofu fmt -check -recursive |