feat: implement license platform business flows and delivery tooling
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>
This commit is contained in:
28
.github/workflows/check.yml
vendored
28
.github/workflows/check.yml
vendored
@@ -1,12 +1,31 @@
|
||||
name: Check
|
||||
on:
|
||||
push:
|
||||
paths: ['backend/**', 'frontend/**', '.github/workflows/check.yml']
|
||||
paths: ['backend/**', 'client/**', 'frontend/**', 'scripts/**', 'deploy/**', 'compose.yaml', '.github/workflows/check.yml']
|
||||
pull_request:
|
||||
paths: ['backend/**', 'frontend/**', '.github/workflows/check.yml']
|
||||
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
|
||||
@@ -16,8 +35,12 @@ jobs:
|
||||
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:
|
||||
@@ -31,4 +54,5 @@ jobs:
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- run: npm run build
|
||||
|
||||
Reference in New Issue
Block a user