summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSebastiaan van Stijn <thaJeztah@users.noreply.github.com>2022-09-21 18:07:58 +0200
committerGitHub <noreply@github.com>2022-09-21 18:07:58 +0200
commit6d20ea5c38942d191f7937e31f90b84135d055f2 (patch)
tree5fc4d631cb029e11f51b7841fe4dc31dd4747138 /.github/workflows
parenta39ba095ebd6a7ae26e259e511bee9e1b5cb3cd2 (diff)
parent7b9877bd8a60a6a4592bdc7c6578683861900d70 (diff)
downloaddocker-6d20ea5c38942d191f7937e31f90b84135d055f2.tar.gz
Merge pull request #44134 from crazy-max/test-summary
ci(test): report summary output
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml79
1 files changed, 79 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f3db204ba0..616bb12817 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -17,6 +17,7 @@ on:
env:
GO_VERSION: 1.19.1
GOTESTLIST_VERSION: v0.2.0
+ TESTSTAT_VERSION: v0.1.3
ITG_CLI_MATRIX_SIZE: 6
BUILDX: docker buildx
USE_BUILDX: 1
@@ -163,6 +164,32 @@ jobs:
name: unit-reports
path: /tmp/reports/*
+ unit-report:
+ runs-on: ubuntu-20.04
+ if: always()
+ needs:
+ - unit
+ steps:
+ -
+ name: Set up Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ -
+ name: Download reports
+ uses: actions/download-artifact@v3
+ with:
+ name: unit-reports
+ path: /tmp/reports
+ -
+ name: Install teststat
+ run: |
+ go install github.com/vearutop/teststat@${{ env.TESTSTAT_VERSION }}
+ -
+ name: Create summary
+ run: |
+ teststat -markdown $(find /tmp/reports -type f -name '*.json' -print0 | xargs -0) >> $GITHUB_STEP_SUMMARY
+
docker-py:
runs-on: ubuntu-20.04
needs:
@@ -322,6 +349,32 @@ jobs:
name: integration-reports
path: /tmp/reports/*
+ integration-report:
+ runs-on: ubuntu-20.04
+ if: always()
+ needs:
+ - integration
+ steps:
+ -
+ name: Set up Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ -
+ name: Download reports
+ uses: actions/download-artifact@v3
+ with:
+ name: integration-reports
+ path: /tmp/reports
+ -
+ name: Install teststat
+ run: |
+ go install github.com/vearutop/teststat@${{ env.TESTSTAT_VERSION }}
+ -
+ name: Create summary
+ run: |
+ teststat -markdown $(find /tmp/reports -type f -name '*.json' -print0 | xargs -0) >> $GITHUB_STEP_SUMMARY
+
integration-cli-prepare:
runs-on: ubuntu-20.04
needs:
@@ -420,3 +473,29 @@ jobs:
with:
name: integration-cli-reports
path: /tmp/reports/*
+
+ integration-cli-report:
+ runs-on: ubuntu-20.04
+ if: always()
+ needs:
+ - integration-cli
+ steps:
+ -
+ name: Set up Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ -
+ name: Download reports
+ uses: actions/download-artifact@v3
+ with:
+ name: integration-cli-reports
+ path: /tmp/reports
+ -
+ name: Install teststat
+ run: |
+ go install github.com/vearutop/teststat@${{ env.TESTSTAT_VERSION }}
+ -
+ name: Create summary
+ run: |
+ teststat -markdown $(find /tmp/reports -type f -name '*.json' -print0 | xargs -0) >> $GITHUB_STEP_SUMMARY