Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: helm/chart-testing-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: helm/chart-testing-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.0
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Jul 20, 2021

  1. docs: bump version of the action in README.md (#71)

    Signed-off-by: Kévin Dunglas <dunglas@gmail.com>
    dunglas authored Jul 20, 2021
    Copy the full SHA
    1c35055 View commit details
  2. docs: update kind-action version in README (#72)

    Signed-off-by: Lucas Bickel <lucas.bickel@adfinis.com>
    hairmare authored Jul 20, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    gustavste Gustav
    Copy the full SHA
    f2061e3 View commit details

Commits on Jan 7, 2022

  1. Update ct to 3.50 (#78)

    * 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>
    cpanato authored Jan 7, 2022
    Copy the full SHA
    6b64532 View commit details
Showing with 52 additions and 8 deletions.
  1. +44 −0 .github/workflows/test-action.yml
  2. +5 −5 README.md
  3. +2 −2 action.yml
  4. +1 −1 ct.sh
44 changes: 44 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

@@ -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.0.1
uses: helm/chart-testing-action@v2.2.0

- name: Run chart-testing (list-changed)
id: list-changed
@@ -63,7 +63,7 @@ jobs:
run: ct lint

- name: Create kind cluster
uses: helm/kind-action@v1.0.0
uses: helm/kind-action@v1.2.0
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion ct.sh
Original file line number Diff line number Diff line change
@@ -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