Add Docker and docker-compose setup for backend and frontend with hot reload #3
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: TicTacToe CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
backend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Run backend tests | |
run: | | |
cd backend | |
echo "No tests yet. Add pytest here later." | |
frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install and Build | |
run: | | |
cd frontend | |
npm install | |
npm run build | |
- name: Run frontend tests | |
run: | | |
echo "No tests yet. Add npm test here later." |