Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
ci(release): run the gates the branch path already runs
Yudhi Armyndharisd4cdf31e1e5b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f9adc09cc..90cb21ca8 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -87,6 +87,19 @@ jobs:test:name: Testruns-on: ubuntu-latest+ # Mirrors ci.yml's test job. Without this service the queue-on e2e suite self-skips and the+ # release path reports green on a suite it never actually ran — the tag is the one place that+ # must not be verified less than the branch it came from.+ services:+ redis:+ image: redis:7-alpine+ ports:+ - 6379:6379+ options: >-+ --health-cmd "redis-cli ping"+ --health-interval 10s+ --health-timeout 5s+ --health-retries 5steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7@@ -102,8 +115,16 @@ jobs:- name: Run unit testsrun: npm test -- --coverage+ # jest's rootDir is src/, so the repo-level script specs run on the plain node runner and were+ # absent from the tag path entirely.+ - name: Run script unit tests+ run: npm run test:scripts+- name: Run e2e smoke testsrun: npm run test:e2e+ env:+ REDIS_HOST: localhost+ REDIS_PORT: '6379'test-postgres:name: Test (PostgreSQL migrations)@@ -181,6 +202,11 @@ jobs:- name: Run ESLintrun: cd dashboard && npm run lint+ # The root format:check globs are anchored at the repo root and never reach dashboard/, so+ # this is the only gate on dashboard formatting — and it was present on the branch path only.+ - name: Check formatting+ run: cd dashboard && npm run format:check+- name: Type-check dashboard testsrun: cd dashboard && npm run typecheck@@ -193,10 +219,30 @@ jobs:- name: Run dashboard unit testsrun: cd dashboard && npm run test:unit+ # Mirrors ci.yml's scripts-smoke job, which had no counterpart here at all: the shell scripts that+ # ship inside the image were linted and exercised on the branch path and on nothing else.+ scripts-smoke:+ name: Shell scripts+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7++ - name: Install sqlite3+ run: sudo apt-get update && sudo apt-get install -y --no-install-recommends sqlite3++ - name: Install shellcheck+ run: sudo apt-get install -y --no-install-recommends shellcheck++ - name: shellcheck every shell script+ run: shellcheck docker-entrypoint.sh scripts/*.sh++ - name: Run backup/restore smoke test+ run: ./scripts/smoke-test-backup-restore.sh+build:name: Buildruns-on: ubuntu-latest- needs: [lint, test, dashboard]+ needs: [lint, test, dashboard, scripts-smoke]steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7