Files
nonye/.gitea/workflows/ci.yml
jrhlh f2b0d2563c
Some checks failed
CI / build (push) Has been cancelled
1
2025-07-18 19:15:44 +08:00

45 lines
963 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install frontend dependencies
working-directory: platform
run: npm install
- name: Build frontend
working-directory: platform
run: npm run build
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install backend dependencies
working-directory: back
run: pip install -r requirements.txt
- name: Run backend tests (if any)
working-directory: back
run: |
if [ -f tests/test.py ]; then python -m unittest discover -s tests; fi
- name: Build Docker image
run: docker-compose build