Skip to content

Commit

Permalink
Add upgrade test & enable init test (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx authored Jan 20, 2025
1 parent 2227ada commit 50a0118
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
matrix:
command:
- build
- scan
- create
- github-actions
- init
- scan
- upgrade
fail-fast: false
steps:
- name: Checkout repository
Expand Down
19 changes: 19 additions & 0 deletions tests/upgrade/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -eou pipefail

test_upgrade() {
if ! 3lv upgrade --force-reinstall; then
echo 'Failed to upgrade 3lv.'
exit 1
fi
}

main() {
test_upgrade

echo 'All tests passed!'
}

main

0 comments on commit 50a0118

Please sign in to comment.