mirror of
https://github.com/fluxcd/flux2.git
synced 2025-11-02 18:58:33 +08:00
ci: add kustomization e2e tests
This commit is contained in:
33
.github/workflows/e2e.yaml
vendored
33
.github/workflows/e2e.yaml
vendored
@ -37,23 +37,40 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- name: Build
|
- name: Build
|
||||||
run: sudo go build -o ./bin/tk ./cmd/tk
|
run: sudo go build -o ./bin/tk ./cmd/tk
|
||||||
- name: Run check e2e tests
|
- name: tk check --pre
|
||||||
run: |
|
run: |
|
||||||
./bin/tk check
|
./bin/tk check --pre
|
||||||
- name: Run install version e2e tests
|
- name: tk install --version
|
||||||
run: |
|
run: |
|
||||||
./bin/tk install --version=master --namespace=test --verbose
|
./bin/tk install --version=master --namespace=test --verbose
|
||||||
- name: Run uninstall e2e tests
|
- name: tk uninstall
|
||||||
run: |
|
run: |
|
||||||
./bin/tk uninstall --namespace=test --crds --silent
|
./bin/tk uninstall --namespace=test --crds --silent
|
||||||
- name: Run dev install e2e tests
|
- name: tk install --manifests
|
||||||
run: |
|
run: |
|
||||||
./bin/tk install --manifests ./manifests/install/
|
./bin/tk install --manifests ./manifests/install/
|
||||||
- name: Run create source e2e tests
|
- name: tk create source git
|
||||||
run: |
|
run: |
|
||||||
./bin/tk create source git podinfo \
|
./bin/tk create source git podinfo \
|
||||||
--git-url https://github.com/stefanprodan/podinfo-deploy \
|
--url https://github.com/stefanprodan/podinfo \
|
||||||
--git-semver=">=0.0.1-rc.1 <0.1.0"
|
--tag-semver=">=3.2.3"
|
||||||
|
- name: tk create kustomization
|
||||||
|
run: |
|
||||||
|
./bin/tk create kustomization podinfo \
|
||||||
|
--source=podinfo \
|
||||||
|
--path="./deploy/overlays/dev" \
|
||||||
|
--prune="env=dev,instance=webapp" \
|
||||||
|
--interval=5m \
|
||||||
|
--validate=client \
|
||||||
|
--health-check="Deployment/frontend.dev" \
|
||||||
|
--health-check="Deployment/backend.dev" \
|
||||||
|
--health-check-timeout=3m
|
||||||
|
- name: tk sync kustomization --with-source
|
||||||
|
run: |
|
||||||
|
./bin/tk sync kustomization podinfo --with-source
|
||||||
|
- name: tk check
|
||||||
|
run: |
|
||||||
|
./bin/tk check
|
||||||
- name: Debug failure
|
- name: Debug failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user