Skip to content

Commit

Permalink
disabling testspace
Browse files Browse the repository at this point in the history
  • Loading branch information
NadirJ committed Nov 28, 2024
1 parent a8a092a commit 1de8e2d
Showing 1 changed file with 52 additions and 49 deletions.
101 changes: 52 additions & 49 deletions .github/actions/deploy-testspace-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,59 +27,62 @@ runs:
using: "composite"
steps:
- run: |
base_url=https://testspace-client.s3.amazonaws.com
version=""
case `uname -s` in
Linux)
folder=$HOME/bin
mkdir -p $folder
arch=`uname -m`
if [ "$arch" != "x86_64" ]; then version="-${arch}${version}"; fi
curl -fsSL ${base_url}/testspace-linux${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
cp -f -p -u $RUNNER_TEMP/testspace $folder
;;
Darwin)
folder=$HOME/bin
mkdir -p $folder
curl -fsSL ${base_url}/testspace-darwin${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
rsync -t -u $RUNNER_TEMP/testspace $folder
;;
*) # Windows
folder=$LOCALAPPDATA\Programs\testspace
mkdir -p "$folder"
curl -OsSL ${base_url}/testspace-windows${version}.zip
unzip -q -o testspace-windows${version}.zip -d $RUNNER_TEMP
rm testspace-windows${version}.zip
cp -f -p -u $RUNNER_TEMP/testspace.exe "$folder"
;;
esac
echo "$folder" >> $GITHUB_PATH
# base_url=https://testspace-client.s3.amazonaws.com
# version=""
# case `uname -s` in
# Linux)
# folder=$HOME/bin
# mkdir -p $folder
# arch=`uname -m`
# if [ "$arch" != "x86_64" ]; then version="-${arch}${version}"; fi
# curl -fsSL ${base_url}/testspace-linux${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
# cp -f -p -u $RUNNER_TEMP/testspace $folder
# ;;
# Darwin)
# folder=$HOME/bin
# mkdir -p $folder
# curl -fsSL ${base_url}/testspace-darwin${version}.tgz | tar -zxvf- -C $RUNNER_TEMP
# rsync -t -u $RUNNER_TEMP/testspace $folder
# ;;
# *) # Windows
# folder=$LOCALAPPDATA\Programs\testspace
# mkdir -p "$folder"
# curl -OsSL ${base_url}/testspace-windows${version}.zip
# unzip -q -o testspace-windows${version}.zip -d $RUNNER_TEMP
# rm testspace-windows${version}.zip
# cp -f -p -u $RUNNER_TEMP/testspace.exe "$folder"
# ;;
# esac
# echo "$folder" >> $GITHUB_PATH
echo "Testspace client installation disabled"
shell: bash
- run: |
if [ -e "${{ inputs.report-file }}" ]; then
python ./scripts/generate-testspace-report.py ${{ inputs.report-type }} "${{ inputs.report-file }}" testspace-report.xml
else
echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
fi
# if [ -e "${{ inputs.report-file }}" ]; then
# python ./scripts/generate-testspace-report.py ${{ inputs.report-type }} "${{ inputs.report-file }}" testspace-report.xml
# else
# echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
# fi
echo "Testspace report generation disabled"
shell: bash
env:
TESTSPACE_REPORT_GITHUB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- run: |
if [ -f "${{ inputs.report-file }}" ]; then
echo "Original report was:"
cat "${{ inputs.report-file }}"
elif [ -d "${{ inputs.report-file }}" ]; then
echo "Original report was a directory"
else
echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
fi
file=testspace-report.xml
if [ -f "$file" ]; then
echo "Uploading $file to testspace"
cat $file
testspace testspace-report.xml \
"${{ inputs.token }}@${{ inputs.repository }}.testspace.com/${{ inputs.project }}/${{ inputs.space }}"
else
echo "Skipping testspace upload as $file does not exist"
fi
# if [ -f "${{ inputs.report-file }}" ]; then
# echo "Original report was:"
# cat "${{ inputs.report-file }}"
# elif [ -d "${{ inputs.report-file }}" ]; then
# echo "Original report was a directory"
# else
# echo "Skipping testspace report generation as ${{ inputs.report-file }} does not exist"
# fi
# file=testspace-report.xml
# if [ -f "$file" ]; then
# echo "Uploading $file to testspace"
# cat $file
# testspace testspace-report.xml \
# "${{ inputs.token }}@${{ inputs.repository }}.testspace.com/${{ inputs.project }}/${{ inputs.space }}"
# else
# echo "Skipping testspace upload as $file does not exist"
# fi
echo "Testspace report upload disabled"
shell: bash

0 comments on commit 1de8e2d

Please sign in to comment.