From 4a041ddbc9160608c198dc1f223e5f52f018fa8c Mon Sep 17 00:00:00 2001 From: "chris.dumas" Date: Fri, 2 Oct 2026 20:16:38 +0000 Subject: [PATCH] Gate deployment on passing validation --- .gitea/workflows/deploy.yml | 22 +++++++++++++++++++++- .gitea/workflows/test-build.yml | 22 ---------------------- 2 files changed, 21 insertions(+), 23 deletions(-) delete mode 100644 .gitea/workflows/test-build.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0f2d092..443111a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,9 +1,29 @@ -name: Deploy ComfyUI Jobs +name: Test, build, and deploy ComfyUI Jobs on: push: branches: [develop, qa, main] + pull_request: + branches: [develop, qa, main] jobs: + test-build: + runs-on: docker + steps: + - uses: actions/checkout@v4 + with: + github-server-url: https://git.dumas.ddns.net + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: python3 scripts/verify-branch-port-mapping.py . + - run: npm ci --include=dev + - run: npm test + - run: npm run lint + - run: npm run build + deploy: + if: ${{ gitea.event_name == 'push' }} + needs: test-build runs-on: docker steps: - uses: actions/checkout@v4 diff --git a/.gitea/workflows/test-build.yml b/.gitea/workflows/test-build.yml deleted file mode 100644 index 8e9573f..0000000 --- a/.gitea/workflows/test-build.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Test and build ComfyUI Jobs -on: - push: - branches: [develop, qa, main] - pull_request: - branches: [develop, qa, main] -jobs: - test-build: - runs-on: docker - steps: - - uses: actions/checkout@v4 - with: - github-server-url: https://git.dumas.ddns.net - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - run: python3 scripts/verify-branch-port-mapping.py . - - run: npm ci --include=dev - - run: npm test - - run: npm run lint - - run: npm run build