Skip to content

Commit 186811a

Browse files
authored
Merge pull request #12 from karthiek390/Workflows
Added a file in the .github folder for the Continuous Integration step.
2 parents 7f0e1f8 + 47452cb commit 186811a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: TicTacToe CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
backend:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.11"
18+
- name: Install dependencies
19+
run: |
20+
pip install -r requirements.txt
21+
- name: Run backend tests
22+
run: |
23+
cd backend
24+
echo "No tests yet. Add pytest here later."
25+
26+
frontend:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v3
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: "18"
34+
- name: Install and Build
35+
run: |
36+
cd frontend
37+
npm install
38+
npm run build
39+
- name: Run frontend tests
40+
run: |
41+
echo "No tests yet. Add npm test here later."

0 commit comments

Comments
 (0)