Skip to content

Commit

Permalink
Fix test-provider actionlinting
Browse files Browse the repository at this point in the history
We were operating in the directory above the actual repo and actionlint just exited with no error.
  • Loading branch information
danielrbradley committed Jun 26, 2024
1 parent 95ef4b6 commit 11c5394
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions provider-ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ test-provider/%: bin/provider-ci $(ACTIONLINT)
cd test-providers/$(PROVIDER_NAME) && \
find . -type f ! -name '.ci-mgmt.yaml' -delete && \
../../bin/provider-ci generate --name pulumi/pulumi-$(PROVIDER_NAME)
rm -rf bin/test-provider/$(PROVIDER_NAME)/repo
mkdir -p bin/test-provider/$(PROVIDER_NAME)/repo
cp -r test-providers/$(PROVIDER_NAME) bin/test-provider/$(PROVIDER_NAME)/repo
cd bin/test-provider/$(PROVIDER_NAME)/repo && git init
cd bin/test-provider/$(PROVIDER_NAME)/repo && ../../../../$(ACTIONLINT) -config-file ../../../../actionlint.yml
rm -rf bin/test-provider/$(PROVIDER_NAME)/repo/.git
mkdir -p bin/test-provider
rm -rf bin/test-provider/$(PROVIDER_NAME)
cp -r test-providers/$(PROVIDER_NAME) bin/test-provider
cd bin/test-provider/$(PROVIDER_NAME) && git init
cd bin/test-provider/$(PROVIDER_NAME) && ../../../$(ACTIONLINT) -config-file ../../../actionlint.yml

# Fetch the latest .ci-mgmt.yaml from the provider repositories ready for testing.
update-provider-configs:
Expand Down

0 comments on commit 11c5394

Please sign in to comment.