Embed SDK version #402
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- master | |
env: | |
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Run actionlint and shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Unshallow clone for tags | |
run: git fetch --prune --unshallow --tags | |
- name: Install pulumictl | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: pulumi/pulumictl | |
- name: lint providers | |
run: cd provider-ci && make lint-providers | |
- name: lint workflows | |
run: | | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
./actionlint -color | |
shell: bash | |
test: | |
name: Verify against testdata | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Unshallow clone for tags | |
run: git fetch --prune --unshallow --tags | |
- name: Install pulumictl | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: pulumi/pulumictl | |
- name: Validate native-providers | |
run: cd native-provider-ci && make all | |
- name: Validate that our test workflows match checked in workflows | |
run: cd provider-ci && make test-workflow-generation | |
- name: Check worktree clean | |
uses: pulumi/git-status-check-action@v1 | |
deploy: | |
uses: ./.github/workflows/update-workflows.yml | |
secrets: inherit | |
with: | |
bridged: true | |
provider_name: xyz | |
automerge: false | |
downstream_test: true | |
skip_closing_prs: true | |
caller_workflow: "pull-request" | |
downstream: | |
name: Test xyz | |
timeout-minutes: 240 | |
runs-on: ubuntu-latest | |
needs: deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Await PR opened for pulumi-xyz | |
run: | | |
echo Await PR opened for pulumi-xyz | |
until gh search prs --repo pulumi/pulumi-xyz --match body "This PR was automatically generated by the pull-request workflow in the pulumi/ci-mgmt repo, from commit ${{ github.sha }}." --json url | grep url; do sleep 30; done; | |
- name: Await PR codegen tests succeed. | |
run: | | |
echo "Await PR opened for pulumi-xyz" | |
number=$(gh search prs --repo pulumi/pulumi-xyz --match body "This PR was automatically generated by the pull-request workflow in the pulumi/ci-mgmt repo, from commit ${{ github.sha }}." --json number --jq '.[0].number') | |
# Ensure that expected checks are pending before checking the status passes. | |
# We use 'test' as all workflows have tests. | |
until gh pr checks --repo "pulumi/pulumi-xyz" "$number" | grep 'test'; do sleep 30; done; | |
gh pr checks --repo "pulumi/pulumi-xyz" "$number" --watch --fail-fast |