-
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.
build: add github workflows
- Loading branch information
Hans Weber
committed
Jan 15, 2024
1 parent
677d3e0
commit 06f3509
Showing
78 changed files
with
2,147 additions
and
1,587 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,41 @@ | ||
# Terraform Provider release workflow. | ||
name: Release | ||
|
||
# This GitHub action creates a release when a tag that matches the pattern | ||
# "v*" (e.g. v0.1.0) is created. | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
# Releases need permissions to read and write the repository contents. | ||
# GitHub considers creating releases and uploading assets as writing contents. | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 | ||
with: | ||
# Allow goreleaser to access older tag information. | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 | ||
with: | ||
go-version-file: "go.mod" | ||
cache: true | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549 # v5.2.0 | ||
id: import_gpg | ||
with: | ||
gpg_private_key: ${{ secrets.TERRAFORM_GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.TERRAFORM_GPG_PASSPHRASE }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0 | ||
with: | ||
args: release --clean | ||
env: | ||
# GitHub sets the GITHUB_TOKEN secret automatically. | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} |
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,28 @@ | ||
name: Generate | ||
|
||
on: | ||
workflow_dispatch: # Allows manual triggering of the workflow to generate SDK | ||
inputs: | ||
force: | ||
description: "Force generation of SDKs" | ||
type: boolean | ||
default: false | ||
schedule: | ||
- cron: 0 0 * * * # Runs every day at midnight | ||
|
||
jobs: | ||
generate: | ||
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 | ||
with: | ||
speakeasy_version: latest | ||
openapi_docs: | | ||
- https://docs.api.epilot.io/journey-config.yaml | ||
overlay_docs: | | ||
- ./overlay.yaml | ||
languages: | | ||
- terraform | ||
mode: pr | ||
force: ${{ github.event.inputs.force }} | ||
secrets: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} |
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,151 @@ | ||
lockVersion: 2.0.0 | ||
id: 5a857039-7f4b-42d5-86fd-449767242ed2 | ||
management: | ||
docChecksum: 6037ef09203af9f9491610a411a63353 | ||
docVersion: 1.0.0 | ||
speakeasyVersion: internal | ||
generationVersion: 2.231.0 | ||
releaseVersion: 0.4.1 | ||
configChecksum: 6a68c10a26d34e28604613ae9f6592cc | ||
features: | ||
go: | ||
additionalProperties: 0.1.1 | ||
constsAndDefaults: 0.1.1 | ||
core: 3.1.4 | ||
flattening: 2.81.1 | ||
globalSecurity: 2.82.2 | ||
globalServerURLs: 2.82.0 | ||
unions: 2.85.0 | ||
terraform: | ||
additionalProperties: 0.1.2 | ||
constsAndDefaults: 0.1.2 | ||
core: 3.8.1 | ||
globalSecurity: 2.81.2 | ||
globalServerURLs: 2.82.1 | ||
unions: 2.81.7 | ||
generatedFiles: | ||
- internal/sdk/price.go | ||
- internal/sdk/product.go | ||
- internal/sdk/tax.go | ||
- internal/sdk/sdk.go | ||
- examples/README.md | ||
- go.mod | ||
- go.sum | ||
- internal/planmodifiers/boolplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/float64planmodifier/suppress_diff.go | ||
- internal/planmodifiers/int64planmodifier/suppress_diff.go | ||
- internal/planmodifiers/listplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/mapplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/numberplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/objectplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/setplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/stringplanmodifier/suppress_diff.go | ||
- internal/planmodifiers/utils/state_check.go | ||
- internal/provider/reflect/diags.go | ||
- internal/provider/reflect/doc.go | ||
- internal/provider/reflect/generic_attr_value.go | ||
- internal/provider/reflect/helpers.go | ||
- internal/provider/reflect/interfaces.go | ||
- internal/provider/reflect/into.go | ||
- internal/provider/reflect/map.go | ||
- internal/provider/reflect/number.go | ||
- internal/provider/reflect/options.go | ||
- internal/provider/reflect/outof.go | ||
- internal/provider/reflect/pointer.go | ||
- internal/provider/reflect/primitive.go | ||
- internal/provider/reflect/slice.go | ||
- internal/provider/reflect/struct.go | ||
- internal/provider/utils.go | ||
- internal/sdk/pkg/models/sdkerrors/sdkerror.go | ||
- internal/sdk/pkg/types/bigint.go | ||
- internal/sdk/pkg/types/date.go | ||
- internal/sdk/pkg/types/datetime.go | ||
- internal/sdk/pkg/types/decimal.go | ||
- internal/sdk/pkg/types/pointers.go | ||
- internal/sdk/pkg/utils/contenttype.go | ||
- internal/sdk/pkg/utils/form.go | ||
- internal/sdk/pkg/utils/headers.go | ||
- internal/sdk/pkg/utils/json.go | ||
- internal/sdk/pkg/utils/pathparams.go | ||
- internal/sdk/pkg/utils/queryparams.go | ||
- internal/sdk/pkg/utils/requestbody.go | ||
- internal/sdk/pkg/utils/retries.go | ||
- internal/sdk/pkg/utils/security.go | ||
- internal/sdk/pkg/utils/utils.go | ||
- internal/validators/DateValidator.go | ||
- internal/validators/ExactlyOneChild.go | ||
- internal/validators/JSONParseValidator.go | ||
- internal/validators/RFC3339Validator.go | ||
- internal/validators/boolvalidators/not_null.go | ||
- internal/validators/float64validators/not_null.go | ||
- internal/validators/int64validators/not_null.go | ||
- internal/validators/listvalidators/not_null.go | ||
- internal/validators/mapvalidators/not_null.go | ||
- internal/validators/numbervalidators/not_null.go | ||
- internal/validators/objectvalidators/not_null.go | ||
- internal/validators/setvalidators/not_null.go | ||
- internal/validators/stringvalidators/not_null.go | ||
- main.go | ||
- terraform-registry-manifest.json | ||
- tools/tools.go | ||
- internal/sdk/pkg/models/operations/createprice.go | ||
- internal/sdk/pkg/models/operations/deleteprice.go | ||
- internal/sdk/pkg/models/operations/getprice.go | ||
- internal/sdk/pkg/models/operations/patchprice.go | ||
- internal/sdk/pkg/models/operations/updateprice.go | ||
- internal/sdk/pkg/models/operations/createproduct.go | ||
- internal/sdk/pkg/models/operations/deleteproduct.go | ||
- internal/sdk/pkg/models/operations/getproduct.go | ||
- internal/sdk/pkg/models/operations/patchproduct.go | ||
- internal/sdk/pkg/models/operations/updateproduct.go | ||
- internal/sdk/pkg/models/operations/createtax.go | ||
- internal/sdk/pkg/models/operations/deletetax.go | ||
- internal/sdk/pkg/models/operations/gettax.go | ||
- internal/sdk/pkg/models/operations/patchtax.go | ||
- internal/sdk/pkg/models/operations/updatetax.go | ||
- internal/sdk/pkg/models/shared/servererror.go | ||
- internal/sdk/pkg/models/shared/price.go | ||
- internal/sdk/pkg/models/shared/pricetier.go | ||
- internal/sdk/pkg/models/shared/pricetierdisplaymode.go | ||
- internal/sdk/pkg/models/shared/baserelation.go | ||
- internal/sdk/pkg/models/shared/baseentityowner.go | ||
- internal/sdk/pkg/models/shared/baseentityacl.go | ||
- internal/sdk/pkg/models/shared/clienterror.go | ||
- internal/sdk/pkg/models/shared/pricecreate.go | ||
- internal/sdk/pkg/models/shared/pricepatch.go | ||
- internal/sdk/pkg/models/shared/product.go | ||
- internal/sdk/pkg/models/shared/productcreate.go | ||
- internal/sdk/pkg/models/shared/productpatch.go | ||
- internal/sdk/pkg/models/shared/tax.go | ||
- internal/sdk/pkg/models/shared/taxcreate.go | ||
- internal/sdk/pkg/models/shared/taxpatch.go | ||
- internal/sdk/pkg/models/shared/security.go | ||
- internal/provider/type_base_entity_acl.go | ||
- internal/provider/type_base_entity_owner.go | ||
- internal/provider/type_dollar_relation.go | ||
- internal/provider/type_base_relation.go | ||
- internal/provider/type_price_tier.go | ||
- internal/provider/type_price_create_unit.go | ||
- internal/provider/type_feature.go | ||
- USAGE.md | ||
- internal/provider/provider.go | ||
- examples/provider/provider.tf | ||
- internal/provider/price_resource.go | ||
- internal/provider/price_resource_sdk.go | ||
- examples/resources/epilot-product_price/resource.tf | ||
- internal/provider/product_resource.go | ||
- internal/provider/product_resource_sdk.go | ||
- examples/resources/epilot-product_product/resource.tf | ||
- internal/provider/tax_resource.go | ||
- internal/provider/tax_resource_sdk.go | ||
- examples/resources/epilot-product_tax/resource.tf | ||
- internal/provider/price_data_source.go | ||
- internal/provider/price_data_source_sdk.go | ||
- examples/data-sources/epilot-product_price/data-source.tf | ||
- internal/provider/product_data_source.go | ||
- internal/provider/product_data_source_sdk.go | ||
- examples/data-sources/epilot-product_product/data-source.tf | ||
- internal/provider/tax_data_source.go | ||
- internal/provider/tax_data_source_sdk.go | ||
- examples/data-sources/epilot-product_tax/data-source.tf | ||
- .gitattributes |
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
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
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.