Skip to content

Commit

Permalink
update action to default chart-testing install to v3.7.0 (#94)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato authored Jul 28, 2022
1 parent 729b0c1 commit 6930ae8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ jobs:
- name: Install chart-testing
uses: ./
- name: Check install!
run: ct version
run: |
ct version
CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null)
ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev)
if [[ $ACTUAL_VERSION != 'v3.7.0' ]]; then
echo 'should be v3.7.0'
exit 1
else
exit 0
fi
shell: bash
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
Expand All @@ -31,9 +41,19 @@ jobs:
- name: Install chart-testing
uses: ./
with:
version: 'v3.4.0'
version: 'v3.5.1'
- name: Check install!
run: ct version
run: |
ct version
CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null)
ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev)
if [[ $ACTUAL_VERSION != 'v3.5.1' ]]; then
echo 'should be v3.5.1'
exit 1
else
exit 0
fi
shell: bash
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.5.0`)
- `version`: The chart-testing version to install (default: `v3.7.0`)

### Example Workflow

Expand All @@ -42,7 +42,7 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1
version: v3.9.2

- uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
run: ct install
```
This uses [`helm/kind-action`](https://www.github.com/helm/kind-action) GitHub Action to spin up a [kind](https://kind.sigs.k8s.io/) Kubernetes cluster,
This uses [`helm/kind-action`](https://www.github.com/helm/kind-action) GitHub Action to spin up a [kind](https://kind.sigs.k8s.io/) Kubernetes cluster,
and [`helm/chart-testing`](https://www.github.com/helm/chart-testing) to lint and test your charts on every pull request.

## Upgrading from v1.x.x
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ branding:
icon: anchor
inputs:
version:
description: "The chart-testing version to install (default: v3.5.1)"
description: "The chart-testing version to install (default: v3.7.0)"
required: false
default: v3.5.1
default: v3.7.0
runs:
using: composite
steps:
Expand Down
2 changes: 1 addition & 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.5.1
DEFAULT_CHART_TESTING_VERSION=v3.7.0

show_help() {
cat << EOF
Expand Down

0 comments on commit 6930ae8

Please sign in to comment.