From e55ffedc35aea0cda54308f377b99b2e9ad514e0 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 12 Oct 2023 21:13:53 +1100 Subject: [PATCH] Add example build test --- .github/workflows/build-and-test-alpha.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-and-test-alpha.yml b/.github/workflows/build-and-test-alpha.yml index a9f6f92a7..447689eaf 100644 --- a/.github/workflows/build-and-test-alpha.yml +++ b/.github/workflows/build-and-test-alpha.yml @@ -37,6 +37,17 @@ jobs: working-directory: ./v3 run: go test -v ./... + - name: Run go build for each subdirectory in v3/examples + run: | + for dir in * + do + dir=${dir%*/} + echo "Building $dir" + cd $dir + go build $dir + cd - + done + - name: Run tests (!mac) if: matrix.os != 'macos-latest' working-directory: ./v3