48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
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'
|
|
concurrency:
|
|
group: creative-workspace-${{ gitea.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
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
|
|
python3 scripts/test-integration-cleanup.py
|
|
- 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
|