Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ct to 3.50 #78

Merged
merged 2 commits into from Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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