Skip to content

Commit

Permalink
Fix additional schema paths
Browse files Browse the repository at this point in the history
- Remove obsolete travis build badge.
  • Loading branch information
danielrbradley committed Nov 20, 2023
1 parent 5d5870e commit 2224468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
- env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
name: Dispatch event
run: pulumictl create docs-build pulumi-${{ env.PROVIDER }} ${GITHUB_REF#refs/tags/} --schema-path awsx/schema.json
run: pulumictl create docs-build pulumi-${{ env.PROVIDER }} ${GITHUB_REF#refs/tags/} --schema-path schema.json
name: release
"on":
push:
Expand Down
8 changes: 3 additions & 5 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.com/pulumi/pulumi-awsx.svg?token=eHg7Zp5zdDDJfTjY8ejq&branch=master)](https://travis-ci.com/pulumi/pulumi-awsx)

# Developing AWSX components

## Prerequisites
Expand Down Expand Up @@ -37,9 +35,9 @@ For building the SDKs:

### Implementing New Components

The schema (`awsx/schema.json`) is generated by schemagen. The entry point is `schemagen/pkg/gen/schema.go`. Amend the go code to generate the schema for the component with its inputs, outputs and any relevant types. Run `make schema` to test your changes.
The schema (`schema.json`) is generated by schemagen. The entry point is `schemagen/pkg/gen/schema.go`. Amend the go code to generate the schema for the component with its inputs, outputs and any relevant types. Run `make schema` to test your changes.

From the `awsx/schema.json` we generate provider types (`awsx/schema-types.ts`) which describe the interfaces that the provider must implement. Running `make provider` will automatically re-generate this as needed.
From the `schema.json` we generate provider types (`awsx/schema-types.ts`) which describe the interfaces that the provider must implement. Running `make provider` will automatically re-generate this as needed.

To implement a new provider resource:

Expand All @@ -51,7 +49,7 @@ To implement a new provider resource:

2. Register the new component implementation in `awsx/resources.ts`.

The SDKs are also generated from the `awsx/schema.json` using the `schemagen` program. This can be done by calling `make build`.
The SDKs are also generated from the `schema.json` using the `schemagen` program. This can be done by calling `make build`.

## Testing Workflow

Expand Down

0 comments on commit 2224468

Please sign in to comment.