diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c972aa..3087433 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,9 @@ jobs: uses: ./ with: url: 'https://github.com/' + id: lighthouse + - name: Check output + run: echo "${{ steps.lighthouse.outputs.performance }}"" - uses: actions/upload-artifact@master with: name: report diff --git a/entrypoint.sh b/entrypoint.sh index 38fa935..b027240 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -47,5 +47,6 @@ printf "+-------------------------------+\n\n" printf "* Detailed results are saved here, use https://github.com/actions/upload-artifact to retrieve them:\n" printf " %s\n" "$OUTPUT_PATH.report.html" printf " %s\n" "$OUTPUT_PATH.report.json" +echo "##[set-output name=performance;]$(echo "$SCORE_PERFORMANCE*100" | bc -l)" exit 0