Skip to content

Commit

Permalink
feat: adds ci tests (#107)
Browse files Browse the repository at this point in the history
* feat: adds ci tests

Signed-off-by: ChrisJBurns <[email protected]>

* fix: adds updated docs

Signed-off-by: ChrisJBurns <[email protected]>

* fix: versions

Signed-off-by: ChrisJBurns <[email protected]>

* bumo verison

Signed-off-by: ChrisJBurns <[email protected]>

* adds more postgres tests

Signed-off-by: ChrisJBurns <[email protected]>

---------

Signed-off-by: ChrisJBurns <[email protected]>
  • Loading branch information
ChrisJBurns authored Feb 8, 2025
1 parent 47b1bbc commit 05d9af0
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 53 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/lint-test.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test Charts

on: pull_request

jobs:
check-readme:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
with:
python-version: '3.x'

- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # pin@v3
with:
go-version: ^1

- name: Setup helm-docs
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest

- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # [email protected]

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # [email protected]
with:
version: 3.10.1

- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
with:
python-version: '3.x'

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (lint)
run: ct lint --config ct.yaml

- name: Create KIND Cluster
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # [email protected]

- name: Run chart-testing (install)
run: ct install --config ct-install.yaml
2 changes: 1 addition & 1 deletion charts/pact-broker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pact-broker
description: The Pact Broker is an application for sharing for Pact contracts and verification results.
type: application
version: 2.1.0
version: 2.1.1
appVersion: 2.112.0
dependencies:
- condition: postgresql.enabled
Expand Down
8 changes: 4 additions & 4 deletions charts/pact-broker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pact-broker

![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.112.0](https://img.shields.io/badge/AppVersion-2.112.0-informational?style=flat-square)
![Version: 2.1.1](https://img.shields.io/badge/Version-2.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.112.0](https://img.shields.io/badge/AppVersion-2.112.0-informational?style=flat-square)

The Pact Broker is an application for sharing for Pact contracts and verification results.

Expand Down Expand Up @@ -51,8 +51,8 @@ helm upgrade -i <release_name> oci://ghcr.io/pact-foundation/pact-broker-chart/p

| Repository | Name | Version |
|------------|------|---------|
| oci://registry-1.docker.io/bitnamicharts | common | 2.11.1 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 12.11.2 |
| oci://registry-1.docker.io/bitnamicharts | common | 2.29.1 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 15.5.38 |

## Values

Expand Down Expand Up @@ -162,7 +162,7 @@ helm upgrade -i <release_name> oci://ghcr.io/pact-foundation/pact-broker-chart/p
| image.pullSecrets | Array of imagePullSecrets to allow pulling the Pact Broker image from private registries. PS: Secret's must exist in the namespace to which you deploy the Pact Broker. more info [here](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) Example: pullSecrets: - mySecretName | list | `[]` |
| image.registry | Pact Broker image registry | string | `"docker.io"` |
| image.repository | Pact Broker image repository | string | `"pactfoundation/pact-broker"` |
| image.tag | Pact Broker image tag (immutable tags are recommended) | string | `"2.123.0-pactbroker2.112.0"` |
| image.tag | Pact Broker image tag (immutable tags are recommended) | string | `"2.124.0-pactbroker2.112.0"` |
| ingress.annotations | ingress.annotations Additional annotations for the Ingress resource | object | `{}` |
| ingress.className | ingress.className Name of the IngressClass cluster resource which defines which controller will implement the resource (e.g nginx) | string | `""` |
| ingress.enabled | ingress.enabled Enable the creation of the ingress resource | bool | `true` |
Expand Down
Empty file.
8 changes: 8 additions & 0 deletions charts/pact-broker/ci/postgres-generated-creds-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
postgresql:
enabled: true

# we enable postgres and allow the subchart to automatically generate the credentials
# that backstage will use
auth:
existingSecret: ""
password: ""
8 changes: 8 additions & 0 deletions charts/pact-broker/ci/postgres-provided-creds-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
postgresql:
enabled: true

auth:
existingSecret: ""
# we provide a password for the subchart to use.
# this is just a password for purposes of CI tests
password: "mytestpassword"

0 comments on commit 05d9af0

Please sign in to comment.