diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml new file mode 100644 index 0000000..7d6fdf9 --- /dev/null +++ b/.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 diff --git a/README.md b/README.md index dadb65d..6b81dd5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 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) @@ -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.4.0`) +- `version`: The chart-testing version to install (default: `v3.5.0`) ### Example Workflow @@ -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 diff --git a/action.yml b/action.yml index 1eeb5c4..a1a9a8b 100644 --- a/action.yml +++ b/action.yml @@ -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: diff --git a/ct.sh b/ct.sh index 9befd3a..6b400c2 100755 --- a/ct.sh +++ b/ct.sh @@ -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