mirror of
https://github.com/element-hq/dendrite.git
synced 2025-03-14 14:15:35 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action) from 2.6.1 to 2.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/helm/chart-testing-action/releases">helm/chart-testing-action's releases</a>.</em></p> <blockquote> <h2>v2.7.0</h2> <p>For <code>ct</code> change see <a href="https://github.com/helm/chart-testing/releases/tag/v3.12.0">https://github.com/helm/chart-testing/releases/tag/v3.12.0</a></p> <h2>What's Changed</h2> <ul> <li>docs: update all version references to latest versions by <a href="https://github.com/froblesmartin"><code>@froblesmartin</code></a> in <a href="https://redirect.github.com/helm/chart-testing-action/pull/141">helm/chart-testing-action#141</a></li> <li>update ct to v3.11.0 / yamlint to 1.33.0 / yamale to 4.0.4 / add e2e test by <a href="https://github.com/cpanato"><code>@cpanato</code></a> in <a href="https://redirect.github.com/helm/chart-testing-action/pull/144">helm/chart-testing-action#144</a></li> <li>use ct 3.12.0 as default by <a href="https://github.com/cpanato"><code>@cpanato</code></a> in <a href="https://redirect.github.com/helm/chart-testing-action/pull/165">helm/chart-testing-action#165</a></li> <li>clean up and fix cr action next release by <a href="https://github.com/cpanato"><code>@cpanato</code></a> in <a href="https://redirect.github.com/helm/chart-testing-action/pull/166">helm/chart-testing-action#166</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/froblesmartin"><code>@froblesmartin</code></a> made their first contribution in <a href="https://redirect.github.com/helm/chart-testing-action/pull/141">helm/chart-testing-action#141</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/helm/chart-testing-action/compare/v2.6.1...v2.7.0">https://github.com/helm/chart-testing-action/compare/v2.6.1...v2.7.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="0d28d3144d
"><code>0d28d31</code></a> clean up and fix cr action next release (<a href="https://redirect.github.com/helm/chart-testing-action/issues/166">#166</a>)</li> <li><a href="ef3072d53a
"><code>ef3072d</code></a> use ct 3.12.0 as default (<a href="https://redirect.github.com/helm/chart-testing-action/issues/165">#165</a>)</li> <li><a href="66b7521f19
"><code>66b7521</code></a> Bump the actions group across 1 directory with 3 updates (<a href="https://redirect.github.com/helm/chart-testing-action/issues/164">#164</a>)</li> <li><a href="5aa1c68405
"><code>5aa1c68</code></a> Bump actions/setup-python from 5.1.0 to 5.1.1 in the actions group (<a href="https://redirect.github.com/helm/chart-testing-action/issues/154">#154</a>)</li> <li><a href="9c98eaab2e
"><code>9c98eaa</code></a> Bump actions/checkout in the actions group across 1 directory (<a href="https://redirect.github.com/helm/chart-testing-action/issues/152">#152</a>)</li> <li><a href="4f62db170e
"><code>4f62db1</code></a> Bump actions/checkout from 4.1.4 to 4.1.5 in the actions group (<a href="https://redirect.github.com/helm/chart-testing-action/issues/147">#147</a>)</li> <li><a href="16c6be374a
"><code>16c6be3</code></a> update ct to v3.11.0 / yamlint to 1.33.0 / yamale to 4.0.4 / add e2e test (<a href="https://redirect.github.com/helm/chart-testing-action/issues/144">#144</a>)</li> <li><a href="af96d800b1
"><code>af96d80</code></a> docs: update all version references to latest versions (<a href="https://redirect.github.com/helm/chart-testing-action/issues/141">#141</a>)</li> <li><a href="dbd7bf1354
"><code>dbd7bf1</code></a> Bump sigstore/cosign-installer from 3.3.0 to 3.5.0 in the actions group (<a href="https://redirect.github.com/helm/chart-testing-action/issues/143">#143</a>)</li> <li><a href="df9dfa7259
"><code>df9dfa7</code></a> Bump the actions group with 1 update (<a href="https://redirect.github.com/helm/chart-testing-action/issues/138">#138</a>)</li> <li>Additional commits viewable in <a href="https://github.com/helm/chart-testing-action/compare/v2.6.1...v2.7.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Devon Hudson <devon.dmytro@gmail.com>
91 lines
No EOL
2.9 KiB
YAML
91 lines
No EOL
2.9 KiB
YAML
name: k8s
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- 'helm/**' # only execute if we have helm chart changes
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- 'helm/**'
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Helm chart
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
changed: ${{ steps.list-changed.outputs.changed }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: azure/setup-helm@v4
|
|
with:
|
|
version: v3.10.0
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.11
|
|
check-latest: true
|
|
- uses: helm/chart-testing-action@v2.7.0
|
|
- name: Get changed status
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --config helm/ct.yaml --target-branch ${{ github.event.repository.default_branch }})
|
|
if [[ -n "$changed" ]]; then
|
|
echo "::set-output name=changed::true"
|
|
fi
|
|
|
|
- name: Run lint
|
|
run: ct lint --config helm/ct.yaml
|
|
|
|
# only bother to run if lint step reports a change to the helm chart
|
|
install:
|
|
needs:
|
|
- lint
|
|
if: ${{ needs.lint.outputs.changed == 'true' }}
|
|
name: Install Helm charts
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ inputs.checkoutCommit }}
|
|
- name: Install Kubernetes tools
|
|
uses: yokawasa/action-setup-kube-tools@v0.11.2
|
|
with:
|
|
setup-tools: |
|
|
helmv3
|
|
helm: "3.10.3"
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.7.0
|
|
- name: Create k3d cluster
|
|
uses: nolar/setup-k3d-k3s@v1
|
|
with:
|
|
version: v1.28
|
|
- name: Remove node taints
|
|
run: |
|
|
kubectl taint --all=true nodes node.cloudprovider.kubernetes.io/uninitialized- || true
|
|
- name: Run chart-testing (install)
|
|
run: ct install --config helm/ct.yaml
|
|
|
|
# Install the chart using helm directly and test with create-account
|
|
- name: Install chart
|
|
run: |
|
|
helm install --values helm/dendrite/ci/ct-postgres-sharedsecret-values.yaml dendrite helm/dendrite
|
|
- name: Wait for Postgres and Dendrite to be up
|
|
run: |
|
|
kubectl wait --for=condition=ready --timeout=90s pod -l app.kubernetes.io/name=postgresql || kubectl get pods -A
|
|
kubectl wait --for=condition=ready --timeout=90s pod -l app.kubernetes.io/name=dendrite || kubectl get pods -A
|
|
kubectl get pods -A
|
|
kubectl get services
|
|
kubectl get ingress
|
|
kubectl logs -l app.kubernetes.io/name=dendrite
|
|
- name: Run create account
|
|
run: |
|
|
podName=$(kubectl get pods -l app.kubernetes.io/name=dendrite -o name)
|
|
kubectl exec "${podName}" -- /usr/bin/create-account -username alice -password somerandompassword |