From e43b84106a17bac22cc54a55bfb418ecbb7f2c5e Mon Sep 17 00:00:00 2001 From: "Stephen Lewis (Burrows)" Date: Tue, 2 Apr 2024 09:41:44 -0700 Subject: [PATCH] Run diff-processor unit tests with TPGB as well (#10323) --- .github/workflows/unit-tests-diff-processor.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests-diff-processor.yml b/.github/workflows/unit-tests-diff-processor.yml index b3a1b80e189a..766c29531b30 100644 --- a/.github/workflows/unit-tests-diff-processor.yml +++ b/.github/workflows/unit-tests-diff-processor.yml @@ -6,6 +6,7 @@ on: pull_request: paths: - 'tools/diff-processor/**' + - '.github/workflows/unit-tests-diff-processor.yml' jobs: test: @@ -18,13 +19,24 @@ jobs: with: go-version: '^1.21.0' - - name: Build + - name: Build with TPG run: | cd tools/diff-processor make clone OWNER_REPO=hashicorp/terraform-provider-google DEPTH=1 make build OLD_REF=main NEW_REF=main - - name: Test + - name: Test with TPG + run: | + cd tools/diff-processor + go test -v ./... + + - name: Build with TPGB + run: | + cd tools/diff-processor + make clone OWNER_REPO=hashicorp/terraform-provider-google-beta DEPTH=1 + make build OLD_REF=main NEW_REF=main + + - name: Test with TPGB run: | cd tools/diff-processor go test -v ./...