bd8ee7f88f
CI / Rust Checks (push) Failing after 1m20s
CI / UI Checks (push) Successful in 1m38s
CI / Deployment Manifests (push) Successful in 15s
Deploy / build-images (apps/admin-api/Dockerfile, git.itexp.me/bsodfather/crank-community-admin-api, admin-api) (push) Failing after 9s
Deploy / build-images (apps/mcp-server/Dockerfile, git.itexp.me/bsodfather/crank-community-mcp-server, mcp-server) (push) Failing after 17s
Deploy / build-images (apps/ui/Dockerfile, git.itexp.me/bsodfather/crank-community-ui, ui) (push) Failing after 10s
Deploy / deploy (push) Has been skipped
CI / Frontend E2E (push) Failing after 12m15s
116 lines
2.6 KiB
YAML
116 lines
2.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "feat/**"
|
|
|
|
jobs:
|
|
rust:
|
|
name: Rust Checks
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
env:
|
|
POSTGRES_DB: crank_test
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- 5432:5432
|
|
options: >-
|
|
--health-cmd "pg_isready -U postgres -d crank_test"
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|
|
env:
|
|
TEST_DATABASE_URL: postgres://postgres:postgres@127.0.0.1:5432/crank_test
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Verify runner toolchain
|
|
run: |
|
|
rustc --version
|
|
cargo --version
|
|
rustfmt --version
|
|
cargo clippy --version
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all --check
|
|
|
|
- name: Check workspace
|
|
run: cargo check --workspace
|
|
|
|
- name: Run clippy
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
- name: Run tests
|
|
run: cargo test --workspace --all-targets
|
|
|
|
ui:
|
|
name: UI Checks
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Verify runner toolchain
|
|
run: |
|
|
node --version
|
|
npm --version
|
|
docker --version
|
|
|
|
- name: Install UI dependencies
|
|
working-directory: apps/ui
|
|
run: npm ci
|
|
|
|
- name: Build UI bundle
|
|
working-directory: apps/ui
|
|
run: npm run build
|
|
|
|
- name: Build UI image
|
|
run: docker build -f apps/ui/Dockerfile .
|
|
|
|
frontend-e2e:
|
|
name: Frontend E2E
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Verify runner toolchain
|
|
run: |
|
|
rustc --version
|
|
cargo --version
|
|
node --version
|
|
npm --version
|
|
|
|
- name: Install UI dependencies
|
|
working-directory: apps/ui
|
|
run: npm ci
|
|
|
|
- name: Install Playwright browser
|
|
working-directory: apps/ui
|
|
run: npx playwright install --with-deps chromium
|
|
|
|
- name: Run Playwright e2e
|
|
working-directory: apps/ui
|
|
run: npx playwright test
|
|
|
|
deployment:
|
|
name: Deployment Manifests
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Validate Community deployment manifest
|
|
run: docker compose -f deploy/community/docker-compose.yml --env-file deploy/community/.env.example config -q
|