-
Notifications
You must be signed in to change notification settings - Fork 70
44 lines (39 loc) · 972 Bytes
/
test-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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