name: e2e on: pull_request: push: branches: - master jobs: kind: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Restore Go cache uses: actions/cache@v1 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - name: Setup Go uses: actions/setup-go@v2-beta with: go-version: 1.14.x - name: Setup Kubernetes uses: engineerd/setup-kind@v0.3.0 - name: Setup Kustomize uses: ./.github/actions/kustomize - name: Run test run: make test - name: Check if working tree is dirty run: | if [[ $(git diff --stat) != '' ]]; then echo 'run make test and commit changes' exit 1 fi - name: Build run: sudo go build -o ./bin/tk ./cmd/tk - name: Run check e2e tests run: | ./bin/tk check - name: Run install version e2e tests run: | ./bin/tk install --version=master --namespace=test --verbose - name: Run uninstall e2e tests run: | ./bin/tk uninstall --namespace=test --crds --silent - name: Run dev install e2e tests run: | ./bin/tk install --manifests ./manifests/install/ - name: Run create source e2e tests run: | ./bin/tk create source git podinfo \ --git-url https://github.com/stefanprodan/podinfo-deploy \ --git-semver=">=0.0.1-rc.1 <0.1.0" - name: Debug failure if: failure() run: | kubectl version --client --short kustomize version --short kubectl -n gitops-system get all