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