Skip to content

Commit 6b64532

Browse files
authored
Update ct to 3.50 (#78)
* update ct to 3.5.0 Signed-off-by: Carlos Panato <[email protected]> * add gh actions to test ct action itself Signed-off-by: Carlos Panato <[email protected]>
1 parent f2061e3 commit 6b64532

File tree

4 files changed

+51
-7
lines changed

4 files changed

+51
-7
lines changed

.github/workflows/test-action.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: test-chart-testing-action
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
test_ct_action:
7+
runs-on: ubuntu-latest
8+
9+
name: Install chart-testing and test presence in path
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Install chart-testing
13+
uses: ./
14+
- name: Check install!
15+
run: ct version
16+
- name: Check root directory
17+
run: |
18+
if [[ $(git diff --stat) != '' ]]; then
19+
echo 'should be clean'
20+
exit 1
21+
else
22+
exit 0
23+
fi
24+
25+
test_ct_action_custom:
26+
runs-on: ubuntu-latest
27+
28+
name: Install Custom chart-testing and test presence in path
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Install chart-testing
32+
uses: ./
33+
with:
34+
version: 'v3.4.0'
35+
- name: Check install!
36+
run: ct version
37+
- name: Check root directory
38+
run: |
39+
if [[ $(git diff --stat) != '' ]]; then
40+
echo 'should be clean'
41+
exit 1
42+
else
43+
exit 0
44+
fi

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/
77
### Pre-requisites
88

99
1. A GitHub repo containing a directory with your Helm charts (e.g: `charts`)
10-
1. A workflow YAML file in your `.github/workflows` directory.
10+
1. A workflow YAML file in your `.github/workflows` directory.
1111
An [example workflow](#example-workflow) is available below.
1212
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)
1313

1414
### Inputs
1515

1616
For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)
1717

18-
- `version`: The chart-testing version to install (default: `v3.4.0`)
18+
- `version`: The chart-testing version to install (default: `v3.5.0`)
1919

2020
### Example Workflow
2121

@@ -42,14 +42,14 @@ jobs:
4242
- name: Set up Helm
4343
uses: azure/setup-helm@v1
4444
with:
45-
version: v3.4.0
45+
version: v3.7.2
4646

4747
- uses: actions/setup-python@v2
4848
with:
4949
python-version: 3.7
5050

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

5454
- name: Run chart-testing (list-changed)
5555
id: list-changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ branding:
66
icon: anchor
77
inputs:
88
version:
9-
description: "The chart-testing version to install (default: v3.4.0)"
10-
default: v3.4.0
9+
description: "The chart-testing version to install (default: v3.5.0)"
10+
default: v3.5.0
1111
runs:
1212
using: composite
1313
steps:

ct.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o errexit
44
set -o nounset
55
set -o pipefail
66

7-
DEFAULT_CHART_TESTING_VERSION=v3.4.0
7+
DEFAULT_CHART_TESTING_VERSION=v3.5.0
88

99
show_help() {
1010
cat << EOF

0 commit comments

Comments
 (0)