Skip to content

Add Docker and docker-compose setup for backend and frontend with hot reload #3

Add Docker and docker-compose setup for backend and frontend with hot reload

Add Docker and docker-compose setup for backend and frontend with hot reload #3

Workflow file for this run

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."