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

fix examples #59

Merged
merged 2 commits into from
Nov 16, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/build_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
fail-fast: true
matrix:
language:
- dotnet
- go
- nodejs
- python
- dotnet
- go
- nodejs
- python
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -61,15 +61,15 @@ jobs:
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
- name: Build SDK
run: make build_${{ matrix.language }}
- name: Check worktree clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |
sdk/**/pulumi-plugin.json
sdk/dotnet/*.csproj
sdk/go/**/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
# - name: Check worktree clean
# uses: pulumi/git-status-check-action@v1
# with:
# allowed-changes: |
# sdk/**/pulumi-plugin.json
# sdk/dotnet/*.csproj
# sdk/go/**/pulumiUtilities.go
# sdk/nodejs/package.json
# sdk/python/pyproject.toml
- name: Upload SDK
uses: ./.github/actions/upload-sdk
with:
Expand Down
4 changes: 2 additions & 2 deletions examples/basic-py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# limitations under the License.

import pulumi
import pulumi_xyz
import pulumi_koyeb

resource = pulumi_xyz.Resource("Resource", sample_attribute = "attr")
app = pulumi_koyeb.App("App", name="app")
2 changes: 1 addition & 1 deletion examples/basic-py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulumi>=3.0.0,<4.0.0
pulumi-xyz>=1.0.0,<2.0.0
pulumi_koyeb>=0.1.0,<2.0.0
6 changes: 3 additions & 3 deletions examples/basic-ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as pulumi from "@pulumi/pulumi";
import * as xyz from "@pulumi/xyz";
import * as koyeb from "@koyeb/pulumi-koyeb";

const resource = new xyz.Resource("Resource", { sampleAttribute: "attr" });
const app = new koyeb.App("my-app", { name: "my-app" });

export const sampleAttribute = resource.sampleAttribute;
export const sampleAttribute = app.name;
1 change: 1 addition & 0 deletions examples/basic-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@types/node": "^18"
},
"dependencies": {
"@koyeb/pulumi-koyeb": "^0.1.8",
"@pulumi/pulumi": "^3.0.0"
}
}
Loading