Skip to content

Commit

Permalink
Readme and license updates, fixes issue #56
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma authored Oct 19, 2023
1 parent 44dbcc2 commit 149c5ee
Show file tree
Hide file tree
Showing 7 changed files with 1,824 additions and 23 deletions.
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

Expand Down
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:
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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:
Expand All @@ -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
47 changes: 47 additions & 0 deletions .github/workflows/core-pipeline-main-branch-only.yml
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Terraform Provider Pipeline
name: Provider Test Pipeline

on: workflow_call


jobs:
test:
name: Run Provider setup and tests
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2023 Solace Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Terraform Provider for Solace PubSub+ Software Event Broker
[![Actions Status](https://github.com/SolaceProducts/terraform-provider-solacebroker/actions/workflows/core-pipeline.yml/badge.svg?branch=main)](https://github.com/SolaceProducts/terraform-provider-solacebroker/actions?query=workflow:%22Test+Provider%22+branch:main)
[![Go Report Card](https://goreportcard.com/badge/github.com/solaceproducts/terraform-provider-solacebroker)](https://goreportcard.com/report/github.com/solaceproducts/terraform-provider-solacebroker)


This provider, maintained by Solace, is a plugin for Terraform that enables you to configure PubSub+ Software Event Brokers.

Expand Down
Loading

0 comments on commit 149c5ee

Please sign in to comment.