Skip to content

Commit 1f74672

Browse files
committed
Add test deployment action configuration
1 parent 69ee34d commit 1f74672

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/actions/test-deployment/action.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ runs:
3333
with:
3434
helm-version: ${{ inputs.helm-version }}
3535
install-helmfile: 'true'
36-
36+
3737
- name: Create customer
3838
shell: bash
3939
working-directory: ${{ inputs.app-dir }}
4040
run: |
4141
task customer-create \
4242
CUSTOMER_NAME="${{ inputs.customer-name }}" \
4343
RELEASE_CHANNEL="${{ inputs.channel-name }}"
44-
44+
4545
- name: Get customer license
4646
id: license
4747
shell: bash
@@ -50,7 +50,7 @@ runs:
5050
LICENSE_ID=$(task utils:get-customer-license CUSTOMER_NAME="${{ inputs.customer-name }}" --silent | tail -1)
5151
echo "license-id=$LICENSE_ID" >> $GITHUB_OUTPUT
5252
echo "::add-mask::$LICENSE_ID"
53-
53+
5454
- name: Create cluster with retry
5555
uses: nick-fields/[email protected]
5656
with:
@@ -60,19 +60,14 @@ runs:
6060
command: |
6161
cd ${{ inputs.app-dir }}
6262
task cluster-create CLUSTER_NAME="${{ inputs.cluster-name }}"
63-
63+
6464
- name: Setup cluster
6565
shell: bash
6666
working-directory: ${{ inputs.app-dir }}
6767
run: |
6868
task setup-kubeconfig CLUSTER_NAME="${{ inputs.cluster-name }}"
6969
task cluster-ports-expose CLUSTER_NAME="${{ inputs.cluster-name }}"
70-
71-
- name: Update dependencies
72-
shell: bash
73-
working-directory: ${{ inputs.app-dir }}
74-
run: task dependencies-update
75-
70+
7671
- name: Deploy application
7772
shell: bash
7873
working-directory: ${{ inputs.app-dir }}
@@ -82,15 +77,15 @@ runs:
8277
CLUSTER_NAME="${{ inputs.cluster-name }}" \
8378
CHANNEL_SLUG="${{ inputs.channel-name }}" \
8479
REPLICATED_LICENSE_ID="${{ steps.license.outputs.license-id }}"
85-
80+
8681
- name: Run tests
8782
shell: bash
8883
working-directory: ${{ inputs.app-dir }}
8984
run: task test
90-
91-
- name: Cleanup resources
92-
if: inputs.cleanup == 'true'
93-
shell: bash
94-
working-directory: ${{ inputs.app-dir }}
95-
run: |
96-
task cleanup-pr-resources BRANCH_NAME="${{ inputs.customer-name }}"
85+
86+
# - name: Cleanup resources
87+
# if: inputs.cleanup == 'true'
88+
# shell: bash
89+
# working-directory: ${{ inputs.app-dir }}
90+
# run: |
91+
# task cleanup-pr-resources BRANCH_NAME="${{ inputs.customer-name }}"

0 commit comments

Comments
 (0)