c19f0b79ec
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 12s
ci-bats Bats tests OK
CI Feature / Bats tests (push) Successful in 1m41s
ci-cucumber Cucumber tests OK
CI Feature / Cucumber tests (push) Successful in 1m3s
CI Feature / Report Summary (push) Successful in 4s
CI Feature / Validate CI config (push) Failing after 16s
35 lines
867 B
YAML
35 lines
867 B
YAML
name: Report Summary
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
env_json:
|
|
required: true
|
|
type: string
|
|
suites:
|
|
required: true
|
|
type: string
|
|
description: Space-separated suite names published to git-pages
|
|
|
|
env:
|
|
GIT_PAGES_URL: ${{ fromJson(inputs.env_json).GIT_PAGES_URL }}
|
|
|
|
jobs:
|
|
summary:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate report links
|
|
shell: bash
|
|
run: |
|
|
SHA8="${GITHUB_SHA:0:8}"
|
|
BASE="${GIT_PAGES_URL}/${GITHUB_REPOSITORY}/reports/${SHA8}"
|
|
|
|
{
|
|
echo "## Test Reports"
|
|
echo ""
|
|
echo "| Suite | Report |"
|
|
echo "|-------|--------|"
|
|
for suite in ${{ inputs.suites }}; do
|
|
echo "| ${suite} | [View report](${BASE}/${suite}/) |"
|
|
done
|
|
} >> "${GITHUB_STEP_SUMMARY}"
|