Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate tests from https://github.com/pulumi/ci-mgmt/pull/640 #641

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 0 additions & 21 deletions .github/workflows/lint-ecosystem-providers.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
pull_request:
branches:
- master
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
lint:
name: Run actionlint and shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- 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
test:
name: Verify against testdata
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
repo: pulumi/pulumictl
- name: Checkout Scripts Repo
uses: actions/checkout@v3
with:
path: ci-scripts
repository: pulumi/scripts
- name: Validate that canaries match checked in workflows
run: cd provider-ci && make canary-providers
- name: Check worktree clean
run: ./ci-scripts/ci/check-worktree-is-clean
8 changes: 6 additions & 2 deletions .github/workflows/update-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ jobs:
rm pulumi-${{ inputs.provider_name }}/.github/workflows/cleanup-artifacts.yml || echo "not found"
rm pulumi-${{ inputs.provider_name }}/.github/workflows/pull_request.yml || echo "not found"
rm pulumi-${{ inputs.provider_name }}/.github/workflows/master.yml || echo "not found"
- name: Copy files from ci-mgmt to pulumi-${{ inputs.provider_name }}
- name: Generate workflow files into pulumi-${{ inputs.provider_name }}
if: inputs.bridged
run: |
cp -r ci-mgmt/provider-ci/providers/${{ inputs.provider_name }}/repo/. pulumi-${{ inputs.provider_name }}/.
cd ci-mgmt/provider-ci && go run ./... generate \
--name pulumi/pulumi-${{ inputs.provider_name }} \
--template bridged-provider \
--config providers/${{ inputs.provider_name }}/config.yaml \
--out ../../pulumi-${{ inputs.provider_name }}
- name: Copy files from ci-mgmt to pulumi-${{ inputs.provider_name }}
if: ${{ inputs.bridged != true }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions provider-ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ lint-providers/%/repo: $(ACTIONLINT) providers/%/repo
LINT_RULES := $(addprefix lint-, $(PROVIDER_REPOS))
lint-providers: $(LINT_RULES)

canary-providers: providers/aws/repo providers/docker/repo

providers: $(PROVIDER_REPOS)
ifeq ($(NAME), all)
provider: providers
Expand Down

This file was deleted.

This file was deleted.

69 changes: 0 additions & 69 deletions provider-ci/providers/aiven/repo/.github/workflows/lint.yml

This file was deleted.

Loading