Gate deployment on passing validation
This commit is contained in:
@@ -1,9 +1,29 @@
|
|||||||
name: Deploy ComfyUI Jobs
|
name: Test, build, and deploy ComfyUI Jobs
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [develop, qa, main]
|
branches: [develop, qa, main]
|
||||||
|
pull_request:
|
||||||
|
branches: [develop, qa, main]
|
||||||
jobs:
|
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:
|
deploy:
|
||||||
|
if: ${{ gitea.event_name == 'push' }}
|
||||||
|
needs: test-build
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user