This commit is contained in:
commit
db82325ed7
216 files changed
+33718
No files matched your search
@@ -0,0 +1,57 @@
|
||||
name: Verify control plane
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
env:
|
||||
POSTGRES_DB: platform_test
|
||||
POSTGRES_USER: platform_test
|
||||
POSTGRES_PASSWORD: disposable_ci_only
|
||||
ports: ['5432:5432']
|
||||
options: --health-cmd "pg_isready -U platform_test -d platform_test" --health-interval 5s --health-timeout 3s --health-retries 20
|
||||
redis:
|
||||
image: redis:7.4-alpine
|
||||
ports: ['6379:6379']
|
||||
options: --health-cmd "redis-cli ping" --health-interval 5s --health-timeout 3s --health-retries 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
cache: maven
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- name: Backend against disposable PostgreSQL and Redis
|
||||
working-directory: backend
|
||||
run: mvn -B -ntp verify
|
||||
env:
|
||||
TEST_DATABASE_URL: jdbc:postgresql://localhost:5432/platform_test
|
||||
TEST_DATABASE_USER: platform_test
|
||||
TEST_DATABASE_PASSWORD: disposable_ci_only
|
||||
RUN_REDIS_TESTS: 'true'
|
||||
- name: Frontend typecheck and production build
|
||||
working-directory: frontend
|
||||
run: |
|
||||
npm ci --no-audit --no-fund
|
||||
npm run build
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: test-reports
|
||||
path: backend/target/surefire-reports
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Sandbox gateway file and isolation contract tests
|
||||
run: |
|
||||
pip install -r node-agent/requirements.txt
|
||||
python -m unittest discover -s node-agent -p 'test_*.py' -v
|
||||
Reference in new issue
Block a user