Skip to content

Merge remote-tracking branch 'origin' #483

Merge remote-tracking branch 'origin'

Merge remote-tracking branch 'origin' #483

Workflow file for this run

name: CI for Main
on:
push:
branches-ignore:
- "playground**"
workflow_dispatch:
jobs:
client-checks:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22.5.1"
- name: Install Node dependencies
run: |
cd client
npm install
- name: Lint the TypeScript code
run: |
cd client
npm run lint
- name: Run Vitest tests
run: |
cd client
npm test
- name: Build the client
run: |
cd client
npm run build
server-checks:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r server/requirements.txt -r server/requirements-dev.txt
- name: Lint the Python code
run: |
pylint --recursive=y --fail-under=7 server/src
- name: Run Python tests
run: |
cd server
pytest
e2e-checks:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [client-checks, server-checks]
steps:
- uses: actions/checkout@v4
- name: Docker Compose
run: docker compose up --build -d
- name: Run Cypress tests
uses: cypress-io/github-action@v6
with:
wait-on: http://localhost:4000
working-directory: client
env:
CI: true