Skip to content

Commit

Permalink
Enable CI to run upgrade tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Oct 23, 2023
1 parent 8095910 commit d894c5d
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 8 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,26 @@ jobs:
with:
path: ci-scripts
repository: pulumi/scripts
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ env.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-duration-seconds: 3600
role-session-name: ${{ env.PROVIDER }}@githubActions
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVERSION }}
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand All @@ -93,7 +107,9 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Build provider
run: make test_provider provider
run: make provider
- name: Test provider
run: make test_provider
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
- name: Upload bin
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ env.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-duration-seconds: 3600
role-session-name: ${{ env.PROVIDER }}@githubActions
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand All @@ -75,6 +84,11 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVERSION }}
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Setup Node
uses: actions/setup-node@v1
with:
Expand All @@ -93,7 +107,9 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Build provider
run: make test_provider provider
run: make provider
- name: Test provider
run: make test_provider
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
- name: Upload bin
Expand Down Expand Up @@ -198,6 +214,11 @@ jobs:
uses: actions/checkout@v4
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down Expand Up @@ -228,8 +249,10 @@ jobs:
- name: Restore binary perms
run: find ${{ github.workspace }}/bin -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
- name: Test provider
run: make test_provider
- name: Create Provider Binaries
run: make test_provider dist
run: make dist
- name: Upload Provider Binaries
run: aws s3 cp dist s3://get.pulumi.com/releases/plugins/ --recursive
publish_sdk:
Expand Down
31 changes: 29 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ env.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-duration-seconds: 3600
role-session-name: ${{ env.PROVIDER }}@githubActions
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand All @@ -75,6 +84,11 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVERSION }}
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Setup Node
uses: actions/setup-node@v1
with:
Expand All @@ -93,7 +107,9 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Build provider
run: make test_provider provider
run: make provider
- name: Test provider
run: make test_provider
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
- name: Upload bin
Expand Down Expand Up @@ -195,7 +211,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
<<<<<<< HEAD
uses: actions/checkout@v4
=======
uses: actions/checkout@v2
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
>>>>>>> 661983f (Enable CI to run upgrade tests)
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Configure AWS Credentials
Expand Down Expand Up @@ -228,8 +253,10 @@ jobs:
- name: Restore binary perms
run: find ${{ github.workspace }}/bin -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
- name: Test provider
run: make test_provider
- name: Create Provider Binaries
run: make test_provider dist
run: make dist
- name: Upload Provider Binaries
run: aws s3 cp dist s3://get.pulumi.com/releases/plugins/ --recursive
- name: Create GH Release
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ env.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-duration-seconds: 3600
role-session-name: ${{ env.PROVIDER }}@githubActions
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand All @@ -74,6 +83,11 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVERSION }}
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Setup Node
uses: actions/setup-node@v1
with:
Expand All @@ -92,7 +106,9 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Build provider
run: make test_provider provider
run: make provider
- name: Test provider
run: make test_provider
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
- name: Upload bin
Expand Down Expand Up @@ -197,6 +213,11 @@ jobs:
uses: actions/checkout@v4
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down Expand Up @@ -227,8 +248,10 @@ jobs:
- name: Restore binary perms
run: find ${{ github.workspace }}/bin -name "pulumi-*-${{ env.PROVIDER }}" -print
-exec chmod +x {} \;
- name: Test provider
run: make test_provider
- name: Create Provider Binaries
run: make test_provider dist
run: make dist
- name: Upload Provider Binaries
run: aws s3 cp dist s3://get.pulumi.com/releases/plugins/ --recursive
- name: Create GH Release
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

env:
AWS_REGION: us-west-2
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -89,6 +90,15 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ env.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-duration-seconds: 3600
role-session-name: ${{ env.PROVIDER }}@githubActions
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
Expand All @@ -100,6 +110,11 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVERSION }}
- name: Install gotestfmt
uses: GoTestTools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand All @@ -118,7 +133,9 @@ jobs:
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Build provider
run: make test_provider provider
run: make provider
- name: Test provider
run: make test_provider
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
- name: Upload bin
Expand Down

0 comments on commit d894c5d

Please sign in to comment.