Skip to content

Commit

Permalink
Merge pull request #42 from terrestris/kind-cluster-testing
Browse files Browse the repository at this point in the history
chore: Bump versions
  • Loading branch information
ahennr authored Sep 6, 2023
2 parents 2a0a3a6 + 7d935c7 commit 5b38774
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
name: Lint and Test Charts

on: pull_request
on:
pull_request:
paths:
- 'charts/**'
- '!charts/**/README.md'
- '!README.md'

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0
version: v3.12.0

- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@v2.4.0

- name: Run chart-testing (lint)
run: ct lint --chart-dirs . --all --validate-maintainers=false

- name: Create kind cluster
uses: helm/kind-action@v1.4.0
uses: helm/kind-action@v1.7.0

- name: Run chart-testing (install)
run: ct install --chart-dirs . --all
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths:
- 'charts/**'
- '!charts/**/README.md'
- '!README.md'

jobs:
release:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ The helm charts of terrestris. The repository can be found [here](https://terres

## Prerequisites
* Helm (package manager for Kubernetes), see also [here](https://helm.sh/)

## Lint charts
In order to lint charts locally, simply run:
```shell
Expand All @@ -13,3 +14,4 @@ or using `helm/chart-testing`:
```shell
docker run -it --network host --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro --volume $(pwd):/data quay.io/helmpack/chart-testing:v3.7.1 ct lint --chart-dirs . --all --validate-maintainers=false
```
Please note: changes in `README.md` are ignored.

0 comments on commit 5b38774

Please sign in to comment.