name: creative workspace review checks on: pull_request: branches: [main] paths: - 'apps/studio/**' - 'apps/waterfall-wiki/**' - '.gitea/workflows/**' - 'scripts/*studio*' - 'compose.creative-review.yml' - 'scripts/integration.sh' - 'scripts/cleanup-integration.sh' - 'scripts/test-integration-cleanup.py' - 'scripts/cleanup-review-images.sh' - 'scripts/test-review-image-cleanup.py' concurrency: group: creative-workspace-${{ gitea.event.pull_request.number }} cancel-in-progress: true jobs: verify-deployed-canvas: runs-on: ces-control timeout-minutes: 10 steps: - uses: actions/checkout@v4 - name: Verify canvas acceptance script against the designated deployed server run: | node --check apps/studio/scripts/infinite-canvas-smoke.cjs wiki_image=$(docker inspect --format '{{.Config.Image}}' prompt-waterfall-wiki-1) [[ "$wiki_image" =~ ^waterfall-wiki:[0-9a-f]{40}$ ]] test_image="waterfall-wiki-tests:${wiki_image#waterfall-wiki:}" docker image inspect "$test_image" >/dev/null docker run --rm \ --mount "type=bind,src=$PWD,dst=/delivery,readonly" \ -e NODE_PATH=/repo/apps/waterfall-wiki/node_modules \ -e CHROMIUM_PATH=/usr/bin/chromium \ --entrypoint node "$test_image" /delivery/apps/studio/scripts/infinite-canvas-smoke.cjs verify: runs-on: ces-control timeout-minutes: 60 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Check patch formatting run: | git diff --check HEAD^ HEAD bash -n scripts/integration.sh scripts/cleanup-integration.sh scripts/verify-studio-production.sh scripts/cleanup-review-images.sh node --check scripts/verify-studio-visual.cjs python3 scripts/test-integration-cleanup.py python3 scripts/test-review-image-cleanup.py node --test apps/waterfall-wiki/tests/brand-navigation.test.mjs - name: Verify Studio types, tests, build and smoke run: docker build -f apps/studio/Dockerfile -t "creative-studio-review:${{ gitea.sha }}" . - name: Build Wiki integration and runtime images run: | docker build --target integration -t "creative-wiki-tests:${{ gitea.sha }}" . docker build --target runtime -t "creative-wiki-review:${{ gitea.sha }}" . - name: Verify isolated PostgreSQL, S3 and browser integration env: STUDIO_REVIEW_IMAGE: creative-studio-review:${{ gitea.sha }} WATERFALL_WIKI_IMAGE: creative-wiki-review:${{ gitea.sha }} WATERFALL_WIKI_TEST_IMAGE: creative-wiki-tests:${{ gitea.sha }} GITEA_RUN_ID: ${{ gitea.run_id }} run: bash scripts/integration.sh - name: Clean this run disposable integration resources even after cancellation if: always() env: GITEA_RUN_ID: ${{ gitea.run_id }} run: bash scripts/cleanup-integration.sh - name: Remove this run disposable review image tags if: always() env: REVIEW_SHA: ${{ gitea.sha }} run: bash scripts/cleanup-review-images.sh