41b1119f21
CI Feature / Load gitea-env.conf to pipeline env (push) Successful in 11s
ci-validate CI config valid
CI Feature / Validate CI config (push) Successful in 16s
ci-bats Bats tests OK
CI Feature / Bats tests (push) Successful in 1m39s
ci-cucumber Cucumber tests OK
CI Feature / Cucumber tests (push) Successful in 1m7s
CI Feature / Report Summary (push) Successful in 5s
30 lines
734 B
YAML
30 lines
734 B
YAML
name: Report Summary
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
env_json:
|
|
required: true
|
|
type: string
|
|
|
|
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 "|-------|--------|"
|
|
echo "| Bats (unit) | [View report](${BASE}/bats/) |"
|
|
echo "| Cucumber | [View report](${BASE}/cucumber/) |"
|
|
} >> "${GITHUB_STEP_SUMMARY}"
|