Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation. Co-Authored-By: Craft Agent <agents-noreply@craft.do>
59 lines
2.0 KiB
YAML
59 lines
2.0 KiB
YAML
name: Check
|
|
on:
|
|
push:
|
|
paths: ['backend/**', 'client/**', 'frontend/**', 'scripts/**', 'deploy/**', 'compose.yaml', '.github/workflows/check.yml']
|
|
pull_request:
|
|
paths: ['backend/**', 'client/**', 'frontend/**', 'scripts/**', 'deploy/**', 'compose.yaml', '.github/workflows/check.yml']
|
|
jobs:
|
|
delivery-static:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: sh scripts/check-delivery.sh
|
|
- name: Compose configuration only (not runtime acceptance)
|
|
env:
|
|
MYSQL_APP_SECRET_FILE: /tmp/delivery-app.secret
|
|
MYSQL_ROOT_SECRET_FILE: /tmp/delivery-root.secret
|
|
LICENSE_SIGNING_KEY_HOST_FILE: /tmp/delivery-signing.pem
|
|
PACKAGE_STORAGE_HOST: /tmp/delivery-packages
|
|
run: docker compose config --quiet
|
|
api:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports: ['16379:6379']
|
|
options: --health-cmd 'redis-cli ping' --health-interval 5s --health-timeout 3s --health-retries 10
|
|
env:
|
|
ENTRY_REDIS_TEST_ADDR: 127.0.0.1:16379
|
|
defaults:
|
|
run:
|
|
working-directory: backend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: backend/go.mod
|
|
cache-dependency-path: backend/go.sum
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
- run: go test ./...
|
|
- run: go vet ./...
|
|
- run: go test -race ./internal/httpapi -run 'TestOperations|TestOrigin|TestLocalLimiter|TestSessionCookie|TestPublicEntry|TestChunkedBody|TestRedisEntry|TestEntryMode' -count=1
|
|
web:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: frontend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- run: npm ci
|
|
- run: npm test
|
|
- run: npm run build
|