Skip to content

Add functional test for java-spiffe-helper #15

Add functional test for java-spiffe-helper

Add functional test for java-spiffe-helper #15

Workflow file for this run

name: Test
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
tags: java-spiffe-helper:test
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: helm/kind-action@v1
with:
cluster_name: kind
- run: kind load docker-image java-spiffe-helper:test --name kind
- run: helm upgrade --install -n spire-server spire-crds spire-crds --repo https://spiffe.github.io/helm-charts-hardened/ --create-namespace
- run: helm upgrade --install -n spire-server spire spire --repo https://spiffe.github.io/helm-charts-hardened/ -f .github/tests/spire-values.yaml
- run: docker exec kind-control-plane crictl images
- run: kubectl apply -f .github/tests/java-spiffe-helper.yaml
- run: kubectl wait deployment/java-spiffe-helper --for condition=Ready --timeout=90s
- if: ${{ always() }}
run: kubectl logs deployment/java-spiffe-helper