Skip to content

Commit

Permalink
add upgrade tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Mar 21, 2024
1 parent 0c2e7cf commit 01c42d4
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ tasks:
- task: dependencies:create
- task: create:test-bundle

- name: create-mm-latest-release-bundle
description: Create UDS Mattermost bundle based on the latest release
actions:
- task: pull:latest-package-release
# TODO (@WSTARR): This is currently needed to get around the chicken+egg condition when release please updates the version in GH
- description: Get the current Zarf package name
cmd: cat zarf.yaml | yq .metadata.version
setVariables:
- name: CURRENT_VERSION
- description: Move the latest to the current (needed to make this work on release-please PRs)
cmd: test -f zarf-package-mattermost-${UDS_ARCH}-${CURRENT_VERSION}.tar.zst || mv zarf-package-mattermost-${UDS_ARCH}-*.tar.zst zarf-package-mattermost-${UDS_ARCH}-${CURRENT_VERSION}.tar.zst
- task: dependencies:create
- task: create:test-bundle

# CI will execute the following (via uds-common/.github/actions/test) so they need to be here with these names

- name: test-package
Expand All @@ -44,4 +58,10 @@ tasks:
- name: test-upgrade
description: Test an upgrade from the latest released package to the current branch
actions:
- cmd: echo "not yet"
- task: create-mm-latest-release-bundle
- task: setup:k3d-test-cluster
- task: deploy:test-bundle
- task: create-mm-test-bundle
- task: deploy:test-bundle
- task: test:health-check
- task: test:ingress

0 comments on commit 01c42d4

Please sign in to comment.