From e038c7b9ae1c761befccccf1c20cfb99c339bd18 Mon Sep 17 00:00:00 2001 From: Predrag Rogic Date: Tue, 27 Oct 2020 22:00:43 +0000 Subject: [PATCH] windows test results --- .github/workflows/master.yml | 16 ++++++---------- .github/workflows/pr.yml | 16 ++++++---------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 820d11e40f..0d7673f2c0 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -377,7 +377,7 @@ jobs: echo "----" echo $T_ELAPSED echo "----" - echo "TIME_ELAPSED=$T_ELAPSED" >> $GITHUB_ENV + echo "TIME_ELAPSED=$T_ELAPSED" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Generate HTML Report continue-on-error: true shell: powershell @@ -389,10 +389,8 @@ jobs: $FailNum=$(echo $STAT | jq '.NumberOfFail') $TestsNum=$(echo $STAT | jq '.NumberOfTests') $GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${Env:TIME_ELAPSED}" - echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV - echo 'STAT<> $GITHUB_ENV - echo "${STAT}" >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV + echo "GOPOGH_RESULT=${GOPOGH_RESULT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append + echo "STAT=${STAT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append echo ${GOPOGH_RESULT} $numFail=(echo $STAT | jq '.NumberOfFail') $failedTests=( echo $STAT | jq '.FailedTests') @@ -516,7 +514,7 @@ jobs: echo "----" echo $T_ELAPSED echo "----" - echo "TIME_ELAPSED=$T_ELAPSED" >> $GITHUB_ENV + echo "TIME_ELAPSED=$T_ELAPSED" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Generate HTML Report continue-on-error: true shell: powershell @@ -528,10 +526,8 @@ jobs: $FailNum=$(echo $STAT | jq '.NumberOfFail') $TestsNum=$(echo $STAT | jq '.NumberOfTests') $GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${Env:TIME_ELAPSED}" - echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV - echo 'STAT<> $GITHUB_ENV - echo "${STAT}" >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV + echo "GOPOGH_RESULT=${GOPOGH_RESULT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append + echo "STAT=${STAT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append echo ${GOPOGH_RESULT} $numFail=(echo $STAT | jq '.NumberOfFail') $failedTests=( echo $STAT | jq '.FailedTests') diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 34d4f99dd8..201848842e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -375,7 +375,7 @@ jobs: echo "----" echo $T_ELAPSED echo "----" - echo "TIME_ELAPSED=$T_ELAPSED" >> $GITHUB_ENV + echo "TIME_ELAPSED=$T_ELAPSED" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Generate HTML Report continue-on-error: true shell: powershell @@ -387,10 +387,8 @@ jobs: $FailNum=$(echo $STAT | jq '.NumberOfFail') $TestsNum=$(echo $STAT | jq '.NumberOfTests') $GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${Env:TIME_ELAPSED}" - echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV - echo 'STAT<> $GITHUB_ENV - echo "${STAT}" >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV + echo "GOPOGH_RESULT=${GOPOGH_RESULT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append + echo "STAT=${STAT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append echo ${GOPOGH_RESULT} $numFail=(echo $STAT | jq '.NumberOfFail') $failedTests=( echo $STAT | jq '.FailedTests') @@ -514,7 +512,7 @@ jobs: echo "----" echo $T_ELAPSED echo "----" - echo "TIME_ELAPSED=$T_ELAPSED" >> $GITHUB_ENV + echo "TIME_ELAPSED=$T_ELAPSED" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Generate HTML Report continue-on-error: true shell: powershell @@ -526,10 +524,8 @@ jobs: $FailNum=$(echo $STAT | jq '.NumberOfFail') $TestsNum=$(echo $STAT | jq '.NumberOfTests') $GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${Env:TIME_ELAPSED}" - echo "GOPOGH_RESULT=${GOPOGH_RESULT}" >> $GITHUB_ENV - echo 'STAT<> $GITHUB_ENV - echo "${STAT}" >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV + echo "GOPOGH_RESULT=${GOPOGH_RESULT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append + echo "STAT=${STAT}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append echo ${GOPOGH_RESULT} $numFail=(echo $STAT | jq '.NumberOfFail') $failedTests=( echo $STAT | jq '.FailedTests')