From 75d3c4a7122508cee6d40f47166de77e5f3aa07b Mon Sep 17 00:00:00 2001 From: Thomas Gummerer Date: Wed, 27 Dec 2023 12:15:03 +0100 Subject: [PATCH 1/2] use pulumi CLI dev version for running CI We recently started publishing dev versions of the pulumi CLI. Use these for the CI builds in this repository, to give it some early exposure, and hopefully catch some bugs early. --- .github/workflows/cron.yml | 16 ++++++++++++++++ .github/workflows/run-tests-command.yml | 16 ++++++++++++++++ .github/workflows/smoke-test-cli-command.yml | 16 ++++++++++++++++ .../workflows/smoke-test-provider-command.yml | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 44de320cf..2a6e67662 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -44,6 +44,8 @@ jobs: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: dotnet test @@ -71,6 +73,8 @@ jobs: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: go test @@ -171,6 +175,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Install Go Dependencies @@ -310,6 +316,8 @@ jobs: role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} - name: Install Latest Stable Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - run: echo "Currently Pulumi $(pulumi version) is installed" - name: Install Testing Dependencies run: make ensure @@ -360,6 +368,8 @@ jobs: pip3 install pipenv - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- @@ -464,6 +474,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Destroy test infra @@ -567,6 +579,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Create Test Infrastructure @@ -597,6 +611,8 @@ jobs: registry-url: https://registry.npmjs.org - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- diff --git a/.github/workflows/run-tests-command.yml b/.github/workflows/run-tests-command.yml index 8a89a2008..bac4b2a57 100644 --- a/.github/workflows/run-tests-command.yml +++ b/.github/workflows/run-tests-command.yml @@ -64,6 +64,8 @@ jobs: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: dotnet test @@ -93,6 +95,8 @@ jobs: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: go test @@ -194,6 +198,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Install Go Dependencies @@ -346,6 +352,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Install Testing Dependencies @@ -402,6 +410,8 @@ jobs: pip3 install pipenv - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- @@ -525,6 +535,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Destroy test infra @@ -630,6 +642,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Create Test Infrastructure @@ -662,6 +676,8 @@ jobs: registry-url: https://registry.npmjs.org - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- diff --git a/.github/workflows/smoke-test-cli-command.yml b/.github/workflows/smoke-test-cli-command.yml index 50fafcc98..33687c31b 100644 --- a/.github/workflows/smoke-test-cli-command.yml +++ b/.github/workflows/smoke-test-cli-command.yml @@ -40,6 +40,8 @@ jobs: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: dotnet test @@ -67,6 +69,8 @@ jobs: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: go test @@ -167,6 +171,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev with: pulumi-version: ${{ env.PULUMI_VERSION != '' && format('v{0}', env.PULUMI_VERSION) || null }} - name: Print CLI version @@ -279,6 +285,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev with: pulumi-version: ${{ env.PULUMI_VERSION != '' && format('v{0}', env.PULUMI_VERSION) || null }} - name: Print CLI version @@ -330,6 +338,8 @@ jobs: pip3 install pipenv - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- @@ -434,6 +444,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Destroy test infra @@ -537,6 +549,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Create Test Infrastructure @@ -567,6 +581,8 @@ jobs: registry-url: https://registry.npmjs.org - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- diff --git a/.github/workflows/smoke-test-provider-command.yml b/.github/workflows/smoke-test-provider-command.yml index e4603021f..0155a06fe 100644 --- a/.github/workflows/smoke-test-provider-command.yml +++ b/.github/workflows/smoke-test-provider-command.yml @@ -40,6 +40,8 @@ jobs: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: dotnet test @@ -67,6 +69,8 @@ jobs: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: go test @@ -167,6 +171,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev with: pulumi-version: ${{ env.PULUMI_VERSION != '' && format('v{0}', env.PULUMI_VERSION) || null }} - name: Print CLI version @@ -279,6 +285,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev with: pulumi-version: ${{ env.PULUMI_VERSION != '' && format('v{0}', env.PULUMI_VERSION) || null }} - name: Print CLI version @@ -323,6 +331,8 @@ jobs: pip3 install pipenv - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- @@ -427,6 +437,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Destroy test infra @@ -530,6 +542,8 @@ jobs: repository: pulumi/scripts - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - name: Create Test Infrastructure @@ -560,6 +574,8 @@ jobs: registry-url: https://registry.npmjs.org - name: Install Pulumi CLI uses: pulumi/actions@v4 + with: + pulumi-version: dev - name: Print CLI version run: echo "Currently Pulumi $(pulumi version) is installed" - run: |- From cbed055459c9aa010f9e0141374cc9836022bcbd Mon Sep 17 00:00:00 2001 From: Thomas Gummerer Date: Tue, 2 Jan 2024 14:21:14 +0100 Subject: [PATCH 2/2] update actions to v5 --- .github/workflows/cron.yml | 16 ++++++++-------- .github/workflows/run-tests-command.yml | 16 ++++++++-------- .github/workflows/smoke-test-cli-command.yml | 16 ++++++++-------- .../workflows/smoke-test-provider-command.yml | 16 ++++++++-------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 2a6e67662..b725e8aa2 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -43,7 +43,7 @@ jobs: with: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -72,7 +72,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -174,7 +174,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -315,7 +315,7 @@ jobs: role-session-name: examples@githubActions role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} - name: Install Latest Stable Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - run: echo "Currently Pulumi $(pulumi version) is installed" @@ -367,7 +367,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -473,7 +473,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -578,7 +578,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -610,7 +610,7 @@ jobs: node-version: ${{matrix.nodeversion}} registry-url: https://registry.npmjs.org - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version diff --git a/.github/workflows/run-tests-command.yml b/.github/workflows/run-tests-command.yml index bac4b2a57..16ae1b0aa 100644 --- a/.github/workflows/run-tests-command.yml +++ b/.github/workflows/run-tests-command.yml @@ -63,7 +63,7 @@ jobs: with: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -94,7 +94,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -197,7 +197,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -351,7 +351,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -409,7 +409,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -534,7 +534,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -641,7 +641,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -675,7 +675,7 @@ jobs: node-version: ${{matrix.nodeversion}} registry-url: https://registry.npmjs.org - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version diff --git a/.github/workflows/smoke-test-cli-command.yml b/.github/workflows/smoke-test-cli-command.yml index 33687c31b..27bd3c287 100644 --- a/.github/workflows/smoke-test-cli-command.yml +++ b/.github/workflows/smoke-test-cli-command.yml @@ -39,7 +39,7 @@ jobs: with: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -68,7 +68,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -170,7 +170,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev with: @@ -284,7 +284,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev with: @@ -337,7 +337,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -443,7 +443,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -548,7 +548,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -580,7 +580,7 @@ jobs: node-version: ${{matrix.nodeversion}} registry-url: https://registry.npmjs.org - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version diff --git a/.github/workflows/smoke-test-provider-command.yml b/.github/workflows/smoke-test-provider-command.yml index 0155a06fe..5cc48c595 100644 --- a/.github/workflows/smoke-test-provider-command.yml +++ b/.github/workflows/smoke-test-provider-command.yml @@ -39,7 +39,7 @@ jobs: with: dotnet-version: ${{matrix.dotnetversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -68,7 +68,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -170,7 +170,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev with: @@ -284,7 +284,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev with: @@ -330,7 +330,7 @@ jobs: pip3 install virtualenv==20.0.23 pip3 install pipenv - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -436,7 +436,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -541,7 +541,7 @@ jobs: path: ci-scripts repository: pulumi/scripts - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version @@ -573,7 +573,7 @@ jobs: node-version: ${{matrix.nodeversion}} registry-url: https://registry.npmjs.org - name: Install Pulumi CLI - uses: pulumi/actions@v4 + uses: pulumi/actions@v5 with: pulumi-version: dev - name: Print CLI version