This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
Merge pull request #61 from mirmirmirr/env-support #578
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: Code Formatting Check | |
on: [push, pull_request] | |
jobs: | |
format-check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' # Specify your Node.js version | |
- name: Install Frontend Dependencies | |
run: | | |
npm install | |
- name: Run Frontend Prettier Check | |
run: | | |
npm run check | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' # Specify your Python version | |
- name: Install Backend Dependencies | |
run: | | |
cd backend | |
pip install -r requirements.txt | |
- name: Run Backend Black Check | |
run: | | |
cd backend | |
black --check . |