chore: upgrade Node.js to 24 and update dependencies

- Upgrade Node.js from 20 to 24.15.0 across all CI jobs and workflows
- Run npm audit fix to resolve CVEs in dependencies
- Generate TLS certs dynamically via scripts/gen-tls-certs.sh instead of using static certs
- Add Makefile targets for running each integration test suite locally
This commit is contained in:
Srikrishna Iyer 2026-05-06 20:26:22 +05:30
parent 79632e33d6
commit 647e66c75f
No known key found for this signature in database
GPG key ID: 212F890C328D4059
15 changed files with 526 additions and 709 deletions

View file

@ -1,3 +1,42 @@
.PHONY: clean
clean:
rm -rf .build
.PHONY: local-test
local-test:
docker compose down; docker compose up -d vault && act workflow_dispatch -j local-test -W .github/workflows/local-test.yaml
local-test: clean
docker compose down; docker compose up --detach vault && \
act workflow_dispatch --job local-test --workflows .github/workflows/local-test.yaml
.PHONY: test-basic
test-basic: clean
docker compose down; docker compose up --detach vault && \
npm run test:integration:basic
.PHONY: test-e2e
test-e2e: clean
docker compose down; docker compose up --detach vault && \
act workflow_dispatch --job e2e --workflows .github/workflows/build.yml
.PHONY: test-e2e-tls
test-e2e-tls: clean
./scripts/gen-tls-certs.sh
docker compose down; docker compose up --detach vault-tls && \
act workflow_dispatch --job e2e-tls --workflows .github/workflows/build.yml --env-file .build/e2e-tls.env
.PHONY: test-enterprise
test-enterprise: clean
docker compose down; docker compose up --detach vault-enterprise && \
act workflow_dispatch --job integrationEnterprise --workflows .github/workflows/build.yml
.PHONY: test-all
test-all: clean
npm ci && npm run build && npm run test
$(MAKE) test-basic
$(MAKE) test-e2e
$(MAKE) test-e2e-tls
# VAULT_LICENSE_CI must be set to run enterprise tests
@if [ -n "$(VAULT_LICENSE_CI)" ]; then \
$(MAKE) test-enterprise; \
else \
echo "Skipping enterprise tests: VAULT_LICENSE_CI not set"; \
fi