Skip to content

Commit

Permalink
Update ct to 3.50 (#78)
Browse files Browse the repository at this point in the history
* update ct to 3.5.0

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

* add gh actions to test ct action itself

Signed-off-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Jan 7, 2022
1 parent f2061e3 commit 6b64532
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 7 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test-action.yml
@@ -0,0 +1,44 @@
name: test-chart-testing-action

on: [pull_request]

jobs:
test_ct_action:
runs-on: ubuntu-latest

name: Install chart-testing and test presence in path
steps:
- uses: actions/checkout@v2
- name: Install chart-testing
uses: ./
- name: Check install!
run: ct version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
test_ct_action_custom:
runs-on: ubuntu-latest

name: Install Custom chart-testing and test presence in path
steps:
- uses: actions/checkout@v2
- name: Install chart-testing
uses: ./
with:
version: 'v3.4.0'
- name: Check install!
run: ct version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -7,15 +7,15 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/
### Pre-requisites

1. A GitHub repo containing a directory with your Helm charts (e.g: `charts`)
1. A workflow YAML file in your `.github/workflows` directory.
1. A workflow YAML file in your `.github/workflows` directory.
An [example workflow](#example-workflow) is available below.
For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file)

### Inputs

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.4.0`)
- `version`: The chart-testing version to install (default: `v3.5.0`)

### Example Workflow

Expand All @@ -42,14 +42,14 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
version: v3.7.2

- uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.1.0
uses: helm/chart-testing-action@v2.2.0

- name: Run chart-testing (list-changed)
id: list-changed
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Expand Up @@ -6,8 +6,8 @@ branding:
icon: anchor
inputs:
version:
description: "The chart-testing version to install (default: v3.4.0)"
default: v3.4.0
description: "The chart-testing version to install (default: v3.5.0)"
default: v3.5.0
runs:
using: composite
steps:
Expand Down
2 changes: 1 addition & 1 deletion ct.sh
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o nounset
set -o pipefail

DEFAULT_CHART_TESTING_VERSION=v3.4.0
DEFAULT_CHART_TESTING_VERSION=v3.5.0

show_help() {
cat << EOF
Expand Down

0 comments on commit 6b64532

Please sign in to comment.