generated from hashicorp/terraform-provider-scaffolding-framework
-
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.
- Loading branch information
Showing
30 changed files
with
1,301 additions
and
464 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
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,98 @@ | ||
# Terraform Provider testing workflow. | ||
name: Build | ||
|
||
# This GitHub action runs your tests for each pull request and push. | ||
# Optionally, you can turn it on using a schedule for regular testing. | ||
on: | ||
issue_comment: | ||
types: [created] | ||
paths-ignore: | ||
- 'README.md' | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README.md' | ||
|
||
# Testing only needs permissions to read the repository contents. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
if: github.event.issue.pull_request && contains(github.event.comment.body, '/run-testacc') | ||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- run: go mod download | ||
- run: go build -v . | ||
|
||
comment-triggered-testacc: | ||
# This job runs on issue_comment event with /run-testacc command. | ||
# We will block merging to main unless this job passes | ||
# The reason we don't want to run this on every push is because it's expensive/creates real resources | ||
if: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '/run-testacc') }} | ||
name: Terraform Provider Acceptance Tests | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: dev | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
# list whatever Terraform versions here you would like to support | ||
terraform: | ||
- '1.7.*' | ||
- '1.6.*' | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0 | ||
with: | ||
terraform_version: ${{ matrix.terraform }} | ||
terraform_wrapper: false | ||
- run: go mod download | ||
- env: | ||
TF_ACC: "1" | ||
run: make testacc | ||
timeout-minutes: 10 | ||
|
||
main-testacc: | ||
# This job runs on push to main branch. | ||
if: ${{ github.event_name == 'push' }} | ||
name: Terraform Provider Acceptance Tests | ||
needs: build | ||
environment: dev | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
# list whatever Terraform versions here you would like to support | ||
terraform: | ||
- '1.7.*' | ||
- '1.6.*' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0 | ||
with: | ||
terraform_version: ${{ matrix.terraform }} | ||
terraform_wrapper: false | ||
- run: go mod download | ||
- env: | ||
TF_ACC: "1" | ||
run: make testacc | ||
timeout-minutes: 10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "astronomer_organization Data Source - astronomer" | ||
subcategory: "" | ||
description: |- | ||
Organization data source | ||
--- | ||
|
||
# astronomer_organization (Data Source) | ||
|
||
Organization data source | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `created_at` (String) Organization creation timestamp | ||
- `created_by` (Attributes) Organization creator (see [below for nested schema](#nestedatt--created_by)) | ||
- `id` (String) Organization identifier | ||
- `name` (String) Organization name | ||
- `updated_at` (String) Organization last updated timestamp | ||
- `updated_by` (Attributes) Organization updater (see [below for nested schema](#nestedatt--updated_by)) | ||
|
||
<a id="nestedatt--created_by"></a> | ||
### Nested Schema for `created_by` | ||
|
||
Read-Only: | ||
|
||
- `api_token_name` (String) | ||
- `avatar_url` (String) | ||
- `full_name` (String) | ||
- `id` (String) | ||
- `subject_type` (String) | ||
- `username` (String) | ||
|
||
|
||
<a id="nestedatt--updated_by"></a> | ||
### Nested Schema for `updated_by` | ||
|
||
Read-Only: | ||
|
||
- `api_token_name` (String) | ||
- `avatar_url` (String) | ||
- `full_name` (String) | ||
- `id` (String) | ||
- `subject_type` (String) | ||
- `username` (String) |
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.