From 654ef4fb4a19bc7876310f09ec23688a91c2cfb3 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 30 Jul 2024 13:24:40 -0400 Subject: [PATCH] Fix errors for tests --- .github/workflows/open-pr.yml | 22 ++++++++++++++++++++++ score/score.yaml | 3 --- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml index f3e0b74..694b97f 100644 --- a/.github/workflows/open-pr.yml +++ b/.github/workflows/open-pr.yml @@ -51,6 +51,28 @@ jobs: - name: make compose-test run: | make compose-test + - name: make kind-create-cluster + run: | + make kind-create-cluster + - name: make kind-load-image + run: | + make kind-load-image + - name: install score-k8s + uses: score-spec/setup-score@v3 + with: + file: score-k8s + token: ${{ secrets.GITHUB_TOKEN }} + version: ${{ env.SCORE_K8S_VERSION }} + - name: make k8s-up + id: k8s-up + run: | + make k8s-up + - name: catch k8s-up errors + if: ${{ failure() && steps.k8s-up.outcome == 'failure' }} + run: | + kubectl get events + kubectl logs \ + -l app.kubernetes.io/name=${{ env.WORKLOAD_NAME }} - name: authenticate to google cloud uses: google-github-actions/auth@v2 with: diff --git a/score/score.yaml b/score/score.yaml index 2fb1b92..bbb98b3 100644 --- a/score/score.yaml +++ b/score/score.yaml @@ -13,10 +13,7 @@ containers: cpu: "25m" variables: MESSAGE: "Hello, World!" - MISSING_VAR: ${resources.env.nonexistent-var} resources: - env: - type: environment dns: type: dns route: