From 47452cb4b4ac3cfc0a93108186c9e2c89c583672 Mon Sep 17 00:00:00 2001 From: Karthiek Duggirala Date: Fri, 1 Aug 2025 09:39:22 -0400 Subject: [PATCH] Added a CI config file --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..82a3c72 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +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."