From 5e753c6e3bd04210a8c220b28d90275b8434120a Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Wed, 2 Oct 2024 15:38:17 -0700 Subject: [PATCH 1/2] Add autosdk as target library for kind workflows --- .github/workflows/kind.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kind.yml b/.github/workflows/kind.yml index 99396739c..b25f47bcb 100644 --- a/.github/workflows/kind.yml +++ b/.github/workflows/kind.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: k8s-version: ["v1.26.0"] - library: ["nethttp", "nethttp_custom", "gin", "databasesql", "grpc", "otelglobal", "kafka-go"] + library: ["autosdk", "nethttp", "nethttp_custom", "gin", "databasesql", "grpc", "otelglobal", "kafka-go"] runs-on: ubuntu-latest steps: - name: Checkout Repo From caf20fb6fe1f6d19c67e8fdf2516f1e1157cf565 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Wed, 2 Oct 2024 15:44:43 -0700 Subject: [PATCH 2/2] Fix build steps to recognize build.sh --- .github/workflows/kind.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kind.yml b/.github/workflows/kind.yml index b25f47bcb..52b3eecef 100644 --- a/.github/workflows/kind.yml +++ b/.github/workflows/kind.yml @@ -36,10 +36,13 @@ jobs: uses: actions/checkout@v4 - name: Setup BATS uses: mig4/setup-bats@v1 + - name: Build sample app from script + if: ${{ hashFiles(format('internal/test/e2e/{0}/build.sh', matrix.library)) != '' }} + run: ./internal/test/e2e/${{ matrix.library }}/build.sh -t sample-app:latest - name: Build sample app - run: | - cd internal/test/e2e/${{ matrix.library }} - docker build -t sample-app:latest . + if: ${{ hashFiles(format('internal/test/e2e/{0}/build.sh', matrix.library)) == '' }} + working-directory: ./internal/test/e2e/${{ matrix.library }} + run: docker build -t sample-app:latest . - name: Set up Helm uses: azure/setup-helm@v4 with: