From cc6374c256dae2481185ec86884d23095a0b3375 Mon Sep 17 00:00:00 2001 From: VenelinMartinov Date: Thu, 26 Sep 2024 12:00:59 +0300 Subject: [PATCH] Run bridge CI for feature flags (#2446) This allows us to continuously test feature flags before they are released. This will help us not regress on behaviour there. fixes https://github.com/pulumi/pulumi-terraform-bridge/issues/2432 --- .github/workflows/build-and-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 52440bd32..67b9fb351 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -20,6 +20,7 @@ jobs: # go version in our go.mod files. go-version: [1.22.x, 1.23.x] platform: [ubuntu-latest, macos-latest, windows-latest] + feature-flags: ["DEFAULT", "PULUMI_TF_BRIDGE_ACCURATE_BRIDGE_PREVIEW"] runs-on: ${{ matrix.platform }} steps: - name: Install pulumi @@ -34,6 +35,12 @@ jobs: go-version: ${{ matrix.go-version }} cache-dependency-path: | **/go.sum + - name: export feature flags + run: echo ${{ matrix.feature-flags }}=true >> $GITHUB_ENV + if: ${{ matrix.platform != 'windows-latest' && matrix.feature-flags != 'DEFAULT' }} + - name: export feature flags + run: echo ${{ matrix.feature-flags }}=true >> $env:GITHUB_ENV + if: ${{ matrix.platform == 'windows-latest' && matrix.feature-flags != 'DEFAULT' }} - name: Build run: make build - name: Build PF