Skip to content

Commit

Permalink
Update to chart-testing v3.3.0 (#59)
Browse files Browse the repository at this point in the history
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
  • Loading branch information
unguiculus authored Nov 3, 2020
1 parent 7800dec commit 2f5fcc2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/

For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)

- `version`: The chart-testing version to install (default: `v3.2.0`)
- `version`: The chart-testing version to install (default: `v3.3.0`)

### Example Workflow

Create a workflow (eg: `.github/workflows/lint-test.yaml`):

Note that Python must be installed as shown below because the action also installs [Yamale](https://github.com/23andMe/Yamale) and [yamllint](https://github.com/adrienverge/yamllint) which require Python.
Note that Helm and Python must be installed.
This can be achieved using actions as shown in the example below.
Python is required because `ct lint` runs [Yamale](https://github.com/23andMe/Yamale) and [yamllint](https://github.com/adrienverge/yamllint) which require Python.

```yaml
name: Lint and Test Charts
Expand All @@ -37,6 +39,11 @@ jobs:
with:
fetch-depth: 0

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

- uses: actions/setup-python@v2
with:
python-version: 3.7
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ branding:
icon: anchor
inputs:
version:
description: "The chart-testing version to install (default: v3.2.0)"
default: v3.2.0
description: "The chart-testing version to install (default: v3.3.0)"
default: v3.3.0
runs:
using: composite
steps:
Expand Down
4 changes: 3 additions & 1 deletion ct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o nounset
set -o pipefail

DEFAULT_CHART_TESTING_VERSION=v3.2.0
DEFAULT_CHART_TESTING_VERSION=v3.3.0

show_help() {
cat << EOF
Expand Down Expand Up @@ -92,6 +92,8 @@ install_chart_testing() {
echo "VIRTUAL_ENV=$venv_dir" >> "$GITHUB_ENV"
echo "$venv_dir/bin" >> "$GITHUB_PATH"
fi

ct version
}

main "$@"

0 comments on commit 2f5fcc2

Please sign in to comment.