generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instantiate pulumi-tf-provider-boilerplate for rockset-provider (#1)
- Loading branch information
Showing
229 changed files
with
54,962 additions
and
635 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Simplified form of https://github.com/pulumi/pulumi-package-publisher/main/action.yml | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
cache-dependency-path: '**/go.sum' | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- run: make build_python | ||
- run: make build_go | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-sdk.tar.gz | ||
path: ${{ github.workspace }}/sdk/python | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: go-sdk.tar.gz | ||
path: ${{ github.workspace }}/sdk/go | ||
|
||
publish-go: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
environment: release | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
cache-dependency-path: '**/go.sum' | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
args: release --clean | ||
version: latest | ||
|
||
publish-python: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/pulumi_rockset | ||
permissions: | ||
# Required for trusted publishing | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: python-sdk.tar.gz | ||
path: ${{ github.workspace }}/sdk/python | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: ${{ github.workspace }}/sdk/python/bin/dist |
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,69 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v*.*.* | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
cache-dependency-path: '**/go.sum' | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- run: make tfgen | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.55.2 | ||
working-directory: provider | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
cache-dependency-path: '**/go.sum' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "8" | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- run: make provider | ||
- name: Check for uncommitted generated files | ||
run: | | ||
make build_sdks | ||
if [[ $(git status --porcelain | wc -l) != "0" ]]; then | ||
git status | ||
echo "did you run make build_sdks?" | ||
exit 1 | ||
fi | ||
- run: make test |
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 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 |
---|---|---|
|
@@ -21,3 +21,5 @@ provider/**/schema-embed.json | |
**/version.txt | ||
**/nuget | ||
**/dist | ||
|
||
.ignore |
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 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.
Oops, something went wrong.