Skip to content

Upgrade to Node.js 24 and modernize dependencies with Jest 30 test isolation fix, TypeScript 5.9.2, and comprehensive GitHub Actions compatibility #2980

Upgrade to Node.js 24 and modernize dependencies with Jest 30 test isolation fix, TypeScript 5.9.2, and comprehensive GitHub Actions compatibility

Upgrade to Node.js 24 and modernize dependencies with Jest 30 test isolation fix, TypeScript 5.9.2, and comprehensive GitHub Actions compatibility #2980

# This is a basic workflow to help you get started with Actions
name: Test minikube script (k8s)
# Controls when the workflow will run
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test-minikube-build:
name: Test with minikube (build)
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Start minikube
uses: medyagh/setup-minikube@master
with:
minikube-version: 1.35.0
driver: docker
kubernetes-version: v1.32.0
- name: test script
run: |
eval $(minikube docker-env)
./build-and-deploy.sh
while [[ $(kubectl get pods -l app=wrongsecrets-balancer -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != *"True"* ]]; do echo "waiting for wrongsecrets-balancer" && sleep 2; done
kubectl logs deployments/wrongsecrets-balancer -f >> pod.log &
echo "port forwarding"
kubectl port-forward service/wrongsecrets-balancer 3000:3000 &
echo "Awaiting the first forward to be ready"
sleep 10
curl http://localhost:3000/balancer/
echo "logs from pod to make sure:"
cat pod.log
test-minikube-containers:
name: Test with minikube (containers)
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Start minikube
uses: medyagh/setup-minikube@master
with:
minikube-version: 1.35.0
driver: docker
kubernetes-version: v1.32.0
- name: test script
run: |
eval $(minikube docker-env)
./build-and-deploy-container.sh
while [[ $(kubectl get pods -l app=wrongsecrets-balancer -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != *"True"* ]]; do echo "waiting for wrongsecrets-balancer" && sleep 2; done
kubectl logs deployments/wrongsecrets-balancer -f >> pod.log &
echo "port forwarding"
kubectl port-forward service/wrongsecrets-balancer 3000:3000 &
echo "Awaiting the first forward to be ready"
sleep 10
curl http://localhost:3000/balancer/
echo "logs from pod to make sure:"
cat pod.log