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