mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
The uv version lived only in the Dockerfile, while CI let setup-uv install whatever was latest, so the image and CI could build against different versions. Declaring required-version gives both a single source: setup-uv resolves from it with no workflow input, and the image build's uv sync refuses to run when its pinned UV_VERSION falls outside it. CI also synced without --frozen, so it was free to re-resolve rather than consume the committed lock the way the image does. A lock the image build could not use would have passed CI. The build-time check only runs on a real image build, which is label-gated rather than part of every CI run, so a test asserts the two agree. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HDXxq3vAxJVGhm1pQuK8V7
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
name: Copilot Setup Steps
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
copilot-setup-steps:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
mariadb:
|
|
image: mariadb:12.3.3
|
|
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
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.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
|