-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit deletes the provider CI folder and replaces it with package-ci, applying #446, updating the Makefile to conform to the same interface. Two shared TypeScript files are moved to native-provider-ci: * provider-ci/src/shared-workflows.ts * provider-ci/src/action-versions.ts
- Loading branch information
1 parent
1cb869d
commit 5718fcc
Showing
71 changed files
with
39 additions
and
11,411 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
File renamed without changes.
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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
bin/ |
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 |
---|---|---|
@@ -1,46 +1,39 @@ | ||
NAME ?= all | ||
PROVIDERS := $(patsubst %/, %, $(wildcard providers/*/)) | ||
|
||
all: ensure clean test format providers examples | ||
all: ensure clean test format providers | ||
|
||
gen: clean providers examples | ||
gen: clean providers | ||
|
||
node_modules:: package.json yarn.lock | ||
yarn install | ||
@touch node_modules | ||
# Go build caching is fast enough to use that instead of Make to avoid rebuilds. | ||
bin/package-ci: | ||
go build -o bin/package-ci | ||
|
||
config-schema.json:: node_modules cmd/generate-config-schema.ts src/*.ts | ||
yarn gen-config-schema | ||
|
||
schema:: config-schema.json | ||
|
||
ensure:: node_modules config-schema.json | ||
ensure:: bin/package-ci | ||
|
||
clean: | ||
rm -rf providers/*/repo | ||
rm -rf platform/examples/repo | ||
|
||
test: | ||
yarn run lint | ||
test: | ||
golangci-lint run | ||
|
||
format: | ||
yarn run format | ||
|
||
ifneq ($(NAME),all) | ||
provider:: node_modules | ||
echo $(NAME) | ||
yarn run gen-providers -- --name $(NAME) --debug | ||
else | ||
providers:: node_modules | ||
yarn run gen-providers | ||
go fmt ./... | ||
|
||
providers/%/repo: bin/package-ci | ||
@echo Generating $* | ||
@./bin/package-ci generate \ | ||
--name pulumi/pulumi-$* \ | ||
--out ./providers/$*/repo \ | ||
--template bridged-provider \ | ||
--config ./providers/$*/config.yaml | ||
|
||
providers: $(addsuffix /repo, $(PROVIDERS)) | ||
ifeq ($(NAME), all) | ||
provider: providers | ||
else | ||
provider: provider/$(NAME)/repo | ||
endif | ||
|
||
# Generate the GitHub Actions for the examples repo | ||
# It will generate the files to a platform directory and then examples directory | ||
examples:: node_modules | ||
yarn run gen-examples | ||
|
||
discovery:: node_modules | ||
yarn run discovery | ||
yarn run format | ||
|
||
.PHONY: all ensure clean test format providers examples discovery providers/ec/repo | ||
.PHONY: all gen ensure clean test format provider providers provider/%/repo bin/package-ci |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.