-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add downstream test job to CI (#855)
Fixes #856 This makes ci-mgmt run acceptance-tests on [pulumi-xyz](https://github.com/pulumi/pulumi-xyz) and verifies that they all succeed. It should prevent errors like #837
- Loading branch information
1 parent
a0e3e66
commit 9ad5c6c
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,14 @@ on: | |
description: "Whether the provider is bridged or native" | ||
type: boolean | ||
required: true | ||
downstream_test: | ||
description: "Whether the upgrade is a downstream test" | ||
type: boolean | ||
default: false | ||
skip_closing_prs: | ||
description: "Whether to skip closing PRs" | ||
type: boolean | ||
default: false | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
|
@@ -87,6 +95,7 @@ jobs: | |
npx ts-node index.ts "$DIR" | ||
- name: Close obsolete PRs started by this workflow | ||
uses: actions/github-script@v6 | ||
if: ${{ !inputs.skip_closing_prs }} | ||
with: | ||
github-token: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
script: | | ||
|
@@ -112,15 +121,15 @@ jobs: | |
} | ||
- name: Create PR | ||
id: create-pr | ||
uses: peter-evans/create-pull-request@v3 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: Pulumi Bot <[email protected]> | ||
body: "This PR was automatically generated by the ${{ inputs.caller_workflow }} workflow in the pulumi/ci-mgmt repo, from commit ${{ github.sha }}." | ||
branch: "update-github-actions-workflows-${{ github.run_number }}" | ||
committer: Pulumi Bot <[email protected]> | ||
commit-message: "[internal] Update GitHub Actions workflow files" | ||
labels: "impact/no-changelog-required" | ||
title: "Update GitHub Actions workflows." | ||
title: "${{ inputs.downstream_test == true && '[DOWNSTREAM TEST] '}}Update GitHub Actions workflows." | ||
path: pulumi-${{ inputs.provider_name }} | ||
token: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
- name: "Set PR to auto-merge" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,3 +347,6 @@ on: | |
push: | ||
tags: | ||
- v*.*.*-** | ||
#{{- if .Config.testMasterAndReleaseWorkflows }}# | ||
pull_request: | ||
#{{ end }}# |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,5 @@ | |
"vault", | ||
"venafi", | ||
"vsphere", | ||
"wavefront", | ||
"xyz" | ||
"wavefront" | ||
] |