fix tofu installation tests (#1695)

Signed-off-by: ollevche <ollevche@gmail.com>
This commit is contained in:
Oleksandr Levchenkov 2024-06-03 16:29:14 +03:00 committed by GitHub
parent 9138470a67
commit ab9c995064
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 16 additions and 15 deletions

View File

@ -257,13 +257,14 @@ jobs:
with:
path: ".licensei.cache"
key: licensei-cache-${{ hashFiles('go.sum') }}
# installation-instructions:
# name: "Test Installation Instructions"
# runs-on: ubuntu-latest
#
# steps:
# - name: "Fetch source code"
# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
#
# - name: "Run Installation Instructions Test"
# run: make test-linux-install-instructions
installation-instructions:
name: "Test Installation Instructions"
runs-on: ubuntu-latest
steps:
- name: "Fetch source code"
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: "Run Installation Instructions Test"
run: make test-linux-install-instructions

View File

@ -11,4 +11,4 @@ chmod +x install-opentofu.sh
./install-opentofu.sh --install-method apk
# Remove the installer:
rm install-opentofu.sh
rm -f install-opentofu.sh

View File

@ -11,4 +11,4 @@ chmod +x install-opentofu.sh
./install-opentofu.sh --install-method deb
# Remove the installer:
rm install-opentofu.sh
rm -f install-opentofu.sh

View File

@ -11,4 +11,4 @@ chmod +x install-opentofu.sh
./install-opentofu.sh --install-method rpm
# Remove the installer:
rm install-opentofu.sh
rm -f install-opentofu.sh

View File

@ -11,4 +11,4 @@ chmod +x install-opentofu.sh
./install-opentofu.sh --install-method standalone
# Remove the installer:
rm install-opentofu.sh
rm -f install-opentofu.sh

View File

@ -28,7 +28,7 @@ for SERVICE in $SERVICES; do
echo -e "::group::\033[0;32m✅ ${SERVICE}\033[0m"
else
echo -e "::group::\033[0;31m❌ ${SERVICE}\033[0m"
FAILED=$(("${FAILED}"+1))
FAILED=$((${FAILED}+1))
fi
cat $TEMPFILE | grep -a -E "^[a-zA-Z]+-${SERVICE}-1\s+\| " | sed -E "s/^[a-zA-Z]+-${SERVICE}-1\s+\| //"
echo "::endgroup::"