mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-05-06 01:27:05 +00:00
* pull out script blocks into `hack` path * update e2e workflow to use scripts in `hack` * install cert manager and self-signed cluster issuer in e2e * deploy podinfo with secure port and certificate enabled * add `hack/e2e.sh` script, which can be used to execute the github workflow locally
41 lines
944 B
YAML
41 lines
944 B
YAML
name: e2e
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
kind-helm:
|
|
strategy:
|
|
matrix:
|
|
helm-version:
|
|
- 2.16.12
|
|
- 3.3.4
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup Kubernetes
|
|
uses: engineerd/setup-kind@v0.5.0
|
|
- name: Build container image
|
|
run: |
|
|
./hack/build.sh
|
|
kind load docker-image test/podinfo:latest
|
|
- name: Setup Helm
|
|
uses: ./.github/actions/helm
|
|
with:
|
|
helm-version: ${{ matrix.helm-version }}
|
|
- name: Install Tiller
|
|
if: ${{ startsWith(matrix.helm-version, '2') }}
|
|
run: ./hack/tiller.sh
|
|
- name: Deploy
|
|
run: ./hack/deploy.sh
|
|
- name: Run integration tests
|
|
run: ./hack/test.sh
|
|
- name: Debug failure
|
|
if: failure()
|
|
run: |
|
|
kubectl logs -l app=podinfo || true
|