forked from openwallet-foundation/owl-agent-test-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (81 loc) · 3.25 KB
/
test-runner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: test-harness-runner
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
get-test-harnesses:
name: Get Test Harnesses
runs-on: ubuntu-latest
if: (github.event_name == 'schedule' && github.repository == 'hyperledger/aries-agent-test-harness') || (github.event_name != 'schedule')
outputs:
harnesses: ${{ steps.get-file-list.outputs.files }}
repo-name: ${{ steps.get-repo-info.outputs.name }}
steps:
- name: Echo github info
run: echo '${{toJSON(github)}}'
- name: Get Repository Info
id: get-repo-info
run: |
repository="${{github.repository}}"
name=$(echo ${repository##*/})
echo "::set-output name=name::${name}"
- name: Git checkout
uses: actions/checkout@v2
- name: Get File List
id: get-file-list
uses: the-coding-turtle/[email protected]
with:
directory: ".github/workflows"
file_extension: "yml"
# ==============================================
# Include all test harnesses by default.
# ==============================================
only_files_starts_with: "test-harness-"
# ==============================================
# Ignore specific test harnesses here
# ----------------------------------------------
# - verity:
# - Ignored due to issues with the tests being
# canceled intermitently due to (seemingly)
# resource issues.
# ==============================================
ignore_files_starts_with: "test-harness-verity-"
run-test-harness:
name: Run Test Harness
needs: [get-test-harnesses]
runs-on: ubuntu-latest
if: (github.event_name == 'schedule' && github.repository == 'hyperledger/aries-agent-test-harness') || (github.event_name != 'schedule')
strategy:
max-parallel: 4
matrix:
test-workflow: ${{ fromJson(needs.get-test-harnesses.outputs.harnesses) }}
fail-fast: false
steps:
- name: ${{ matrix.test-workflow }}
if: success() || failure()
uses: convictional/[email protected]
with:
workflow_file_name: ${{ matrix.test-workflow }}
owner: ${{ github.repository_owner }}
repo: ${{ needs.get-test-harnesses.outputs.repo-name }}
ref: ${{ github.event.ref }}
github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
wait_workflow: true
wait_interval: 60
generate-summary-results:
name: Generate Summary Results
needs: [get-test-harnesses, run-test-harness]
if: (success() || failure()) && ((github.event_name == 'schedule' && github.repository == 'hyperledger/aries-agent-test-harness') || (github.event_name != 'schedule'))
runs-on: ubuntu-latest
steps:
- name: generate-summary-results.yml
uses: convictional/[email protected]
with:
workflow_file_name: generate-summary-results.yml
owner: ${{ github.repository_owner }}
repo: ${{ needs.get-test-harnesses.outputs.repo-name }}
ref: ${{ github.event.ref }}
github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
wait_workflow: true
wait_interval: 60