name: Copilot Setup Steps on: workflow_dispatch: permissions: contents: read jobs: copilot-setup-steps: runs-on: ubuntu-latest services: mariadb: image: mariadb:10.11 ports: - 3306:3306 env: MYSQL_ROOT_PASSWORD: passwd options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 valkey: image: valkey/valkey:7.2 ports: - 6379:6379 options: --health-cmd="redis-cli ping" --health-interval=5s --health-timeout=2s --health-retries=3 steps: - name: Checkout repository uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 - name: Install uv uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0 - name: Install Python run: uv python install 3.13 - name: Install system dependencies run: sudo apt-get install -y libmariadb3 libmariadb-dev libpq-dev - name: Install backend dependencies run: uv sync --all-extras --dev - name: Set up Node.js uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version-file: frontend/.nvmrc - name: Install frontend dependencies run: npm install working-directory: frontend - name: Install Trunk CLI run: curl https://get.trunk.io -fsSL | bash -s -- -y - name: Set up test database run: mysql --host 127.0.0.1 --port 3306 -uroot -ppasswd < backend/romm_test/setup.sql