Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

ci(release): run the four gates the tag path was missing

Yudhi Armyndharis6bf7dfcc4a74
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0fd6a3e15..622de2c63 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -84,12 +84,22 @@ jobs:
- name: Check OpenAPI snapshot is up to date
run: npm run openapi:check
- # The same gate ci.yml runs. Its comment there notes this workflow never ran it, which is the
- # gap: a tag pushed with `--follow-tags` starts both workflows, and only the branch one could
- # see an SDK left behind by a contract change. The release path has to stand on its own.
+ # The same gates ci.yml runs. Its comment there notes this workflow never ran them, which is
+ # the gap: a tag pushed with `--follow-tags` starts both workflows, and only the branch one
+ # could see an SDK left behind by a contract change. The release path has to stand on its own,
+ # and it is the path that actually publishes the image and the chart.
- name: Check SDK routes against the contract
run: npm run check:sdk-routes
+ - name: Check the contract is covered by every SDK
+ run: npm run check:sdk-coverage
+
+ - name: Check SDK webhook events against the contract
+ run: npm run check:sdk-events
+
+ - name: Check SDK docs cover the shipped client surface
+ run: npm run check:sdk-docs
+
test:
name: Test
runs-on: ubuntu-latest
@@ -254,6 +264,13 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ # For the behaviour check below. No `npm ci`: it imports only node: builtins, so pinning the
+ # runtime is the whole dependency — without this the step would silently take whatever Node the
+ # runner image happens to ship.
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+
- name: helm lint
run: docker run --rm -v "$PWD/charts:/charts:ro" alpine/helm:4.2.3 lint /charts/openwa
@@ -277,6 +294,13 @@ jobs:
docker run --rm -v "$PWD/rendered:/w:ro" ghcr.io/yannh/kubeconform:v0.8.0 \
-strict -ignore-missing-schemas -summary /w/default.yaml /w/toggled.yaml
+ # What the rendered chart would DO in a cluster, which neither helm lint nor kubeconform can
+ # see: config changes roll the pods, the startup budget exceeds the liveness budget, the
+ # metrics selector names one Service. This is the path that publishes the chart, so a chart
+ # that renders validly but misbehaves must not get past it.
+ - name: Check chart behaviour
+ run: npm run check:chart
+
- name: actionlint
run: docker run --rm -v "$PWD:/repo:ro" -w /repo rhysd/actionlint:1.7.12 -color