mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
name: Copilot Setup Steps
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
copilot-setup-steps:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
mariadb:
|
|
image: mariadb:13.0.2
|
|
ports:
|
|
- 3306:3306
|
|
env:
|
|
MYSQL_ROOT_PASSWORD: passwd
|
|
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3 --health-start-period=30s
|
|
valkey:
|
|
image: valkey/valkey:9.0.6
|
|
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
|
|
- name: Install Python
|
|
run: uv python install
|
|
|
|
- name: Install system dependencies
|
|
run: sudo apt-get install -y libmariadb3 libmariadb-dev libpq-dev
|
|
|
|
- name: Install backend dependencies
|
|
run: uv sync --frozen --all-extras --dev
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.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
|