Update react monorepo #1521
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 and Prettier | |
on: [push] | |
jobs: | |
format-ts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
path: frontend | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: cd frontend/frontend && yarn | |
# - name: Lint with ESLint | |
# run: yarn lint | |
- name: Run Prettier | |
run: cd frontend/frontend && yarn pretty | |
format-py: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: pip install black | |
- name: Run black | |
run: black backend/ |