-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readme and license updates, fixes issue #56
- Loading branch information
Showing
7 changed files
with
1,824 additions
and
23 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/cli-build-pipeline.yml → .github/workflows/cli-test-pipeline.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CLI Build Pipeline | ||
name: CLI Test Pipeline | ||
|
||
on: workflow_call | ||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
name: Build Terraform Provider | ||
name: Build Terraform Provider in Development phase | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
@@ -47,19 +49,19 @@ jobs: | |
SEMP_V2_SWAGGER_CONFIG_EXTENDED_JSON="$BASE/ci/swagger_spec/$SWAGGER_SPEC_NAME" ~/go/bin/broker-terraform-provider-generator all | ||
popd | ||
- name: Test Provider and generate documentations | ||
run: | | ||
make test-coverage | ||
make generate-docs | ||
- name: Build provider | ||
run: | | ||
go mod tidy | ||
go fmt | ||
go install . | ||
~/go/bin/terraform-provider-solacebroker version | ||
~/go/bin/terraform-provider-solacebroker help | ||
- name: Test Provider and generate documentations | ||
run: | | ||
make test-coverage | ||
make generate-docs | ||
- name: Check changed files | ||
uses: tj-actions/verify-changed-files@v14 | ||
id: check-changed-files | ||
|
@@ -73,15 +75,15 @@ jobs: | |
run: | | ||
echo "Changed files: ${{ steps.check-changed-files.outputs.changed_files }}" | ||
# - name: Commit back any updated source code | ||
# if: steps.check-changed-files.outputs.files_changed == 'true' | ||
# uses: EndBug/add-and-commit@v9 | ||
# with: | ||
# committer_name: GitHub Actions | ||
# committer_email: [email protected] | ||
# message: 'Updating generated source [skip ci]' | ||
# add: 'internal/broker/generated/*.go' | ||
# new_branch: GeneratedSourceUpdates-${{ github.ref_name }} | ||
- name: Commit back any updated source code | ||
if: steps.check-changed-files.outputs.files_changed == 'true' | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
committer_name: GitHub Actions | ||
committer_email: [email protected] | ||
message: 'Updating generated source [skip ci]' | ||
add: 'internal/broker/generated/*.go' | ||
new_branch: GeneratedSourceUpdates-${{ github.ref_name }} | ||
|
||
# - name: Create pull request | ||
# if: steps.check-changed-files.outputs.files_changed == 'true' | ||
|
@@ -91,10 +93,9 @@ jobs: | |
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
Plugin-Integration-Test: | ||
needs: build | ||
uses: ./.github/workflows/provider-build-pipeline.yml | ||
uses: ./.github/workflows/provider-test-pipeline.yml | ||
secrets: inherit | ||
|
||
Plugin-Acceptance-Test: | ||
|
@@ -104,5 +105,5 @@ jobs: | |
|
||
CLI-Integration-Test: | ||
needs: build | ||
uses: ./.github/workflows/cli-build-pipeline.yml | ||
uses: ./.github/workflows/cli-test-pipeline.yml | ||
secrets: inherit |
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,47 @@ | ||
name: Test Provider | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build & test Terraform provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Terraform latest | ||
uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_wrapper: false | ||
|
||
- name: Build provider | ||
run: | | ||
go mod tidy | ||
go fmt | ||
go install . | ||
~/go/bin/terraform-provider-solacebroker version | ||
~/go/bin/terraform-provider-solacebroker help | ||
Plugin-Integration-Test: | ||
needs: build | ||
uses: ./.github/workflows/provider-build-pipeline.yml | ||
secrets: inherit | ||
|
||
Plugin-Acceptance-Test: | ||
needs: build | ||
uses: ./.github/workflows/provider-acceptance-test.yml | ||
secrets: inherit | ||
|
||
CLI-Integration-Test: | ||
needs: build | ||
uses: ./.github/workflows/cli-build-pipeline.yml | ||
secrets: inherit |
3 changes: 1 addition & 2 deletions
3
...hub/workflows/provider-build-pipeline.yml → .github/workflows/provider-test-pipeline.yml
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.