From 4ee2963919fb616fb023f7fc9a760a55b661ec86 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Thu, 3 Oct 2024 07:47:52 -0700 Subject: [PATCH] Add autosdk as target library for kind workflows (#1147) * Add autosdk as target library for kind workflows * Fix build steps to recognize build.sh --- .github/workflows/kind.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/kind.yml b/.github/workflows/kind.yml index 99396739c..52b3eecef 100644 --- a/.github/workflows/kind.yml +++ b/.github/workflows/kind.yml @@ -29,17 +29,20 @@ 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 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: