Skip to content

Commit

Permalink
chore: Add helm2 tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
colinjfw committed Sep 30, 2019
1 parent 2420cf6 commit 8426b6e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 7 deletions.
71 changes: 65 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- name: 'Checkout'
uses: 'actions/checkout@v1'

- name: 'Deploy Canary'
- name: 'Helm3 deploy canary'
uses: 'deliverybot/helm@master'
with:
helm: helm3
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
chart: 'app'
namespace: production
namespace: helm-tests
release: production-myapp
version: '${{ github.sha }}'
track: canary
Expand All @@ -38,14 +38,14 @@ jobs:
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'

- name: 'Deploy Production'
- name: 'Helm3 deploy production'
uses: 'deliverybot/helm@master'
with:
helm: helm3
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
chart: 'app'
namespace: production
namespace: helm-tests
release: production-myapp
version: '${{ github.sha }}'
track: stable
Expand All @@ -59,15 +59,74 @@ jobs:
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'

- name: 'Remove Production'
- name: 'Helm3 remove production'
uses: 'deliverybot/helm@master'
with:
helm: helm3
task: 'remove'
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
chart: 'app'
namespace: production
namespace: helm-tests
release: production-myapp
version: '${{ github.sha }}'
track: stable
value-files: '["./tests/values.yml"]'
values: |
replicaCount: 5
image:
repository: nginx
tag: latest
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'

- name: 'Helm deploy canary'
uses: 'deliverybot/helm@master'
with:
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
chart: 'app'
namespace: helm-tests
release: production-myapp
version: '${{ github.sha }}'
track: canary
value-files: '["./tests/values.yml"]'
values: |
replicaCount: 1
image:
repository: nginx
tag: latest
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'

- name: 'Helm deploy production'
uses: 'deliverybot/helm@master'
with:
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
chart: 'app'
namespace: helm-tests
release: production-myapp
version: '${{ github.sha }}'
track: stable
value-files: '["./tests/values.yml"]'
remove-canary: "true"
values: |
replicaCount: 5
image:
repository: nginx
tag: latest
env:
KUBECONFIG_FILE: '${{ secrets.KUBECONFIG }}'

- name: 'Helm remove production'
uses: 'deliverybot/helm@master'
with:
task: 'remove'
token: '${{ github.token }}'
secrets: '${{ toJSON(secrets) }}'
chart: 'app'
namespace: helm-tests
release: production-myapp
version: '${{ github.sha }}'
track: stable
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function getValueFiles(files) {
if (!Array.isArray(fileList)) {
return [];
}
return fileList;
return fileList.filter(f => !!f);
}

function getInput(name, options) {
Expand Down

0 comments on commit 8426b6e

Please sign in to comment.