Skip to content

Commit

Permalink
Publish release v0.1.0 artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 2, 2023
1 parent af9c993 commit efd198c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Firebase Test Lab summary generator
description: Github Summary for Firebase Test Lab test runs

inputs:
merged-results-file:
description: 'Path to the FTL results file (i.e. "./downloaded/panther-33-en-portrait-test_result_merged.xml")'
required: true

outputs:
summary-markdown:
description: Summary markdown
value: ${{ steps.generate-summary.outputs.summary-markdown }}

branding:
color: 'green'
icon: 'check-square'

runs:
using: 'composite'
steps:
- id: generate-summary
shell: bash
env:
INPUT_TOKEN: ${{ inputs.token }}
INPUT_MERGED_RESULT_FILE: ${{ inputs.merged-results-file }}
run: ./entrypoint.sh
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -eo pipefail

summary=$(java -jar ftl-tests-results-r8.jar --merged-results="$INPUT_MERGED_RESULT_FILE")

delimiter=$(openssl rand -hex 20)
echo "summary-markdown<<$delimiter" >> $GITHUB_OUTPUT
echo "$summary" >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT

echo "$summary" >> $GITHUB_STEP_SUMMARY
Binary file added ftl-tests-results-r8.jar
Binary file not shown.

0 comments on commit efd198c

Please sign in to comment.