45
45
TASKS=$(echo $(cat .github/workflows/framework-tests-matrix.json))
46
46
echo "::set-output name=matrix::$TASKS"
47
47
echo $TASKS
48
- framework :
48
+
49
+ framework-test :
49
50
# This job does not need to wait for 'prepare-tests-matrix' result.
50
51
# GitHub allocates runners portionally. Framework tests are time consuming. That's why we want to force them
51
52
# to start execution early.
@@ -70,20 +71,23 @@ jobs:
70
71
run : |
71
72
git fetch
72
73
git checkout ${{ github.event.inputs.commit_sha }}
74
+
73
75
- name : Run monitoring
74
76
run : |
75
77
echo Find your Prometheus metrics using label {instance=\"${GITHUB_RUN_ID}-${HOSTNAME}\"}
76
78
chmod +x ./scripts/monitoring.sh
77
79
./scripts/monitoring.sh ${{ secrets.PUSHGATEWAY_HOSTNAME }} ${{ secrets.PUSHGATEWAY_USER }} ${{ secrets.PUSHGATEWAY_PASSWORD }}
80
+
78
81
- name : Run tests
79
82
run : |
80
- gradle --no-daemon :utbot-framework:test ${{ matrix.project.TESTS_TO_RUN }}
83
+ gradle --no-daemon :utbot-framework-test:test ${{ matrix.project.TESTS_TO_RUN }}
84
+
81
85
- name : Upload logs
82
86
if : ${{ always() }}
83
87
uses : actions/upload-artifact@v3
84
88
with :
85
89
name : logs ${{ matrix.project.PART_NAME }}
86
- path : utbot-framework/logs/*
90
+ path : utbot-framework-test /logs/*
87
91
88
92
- name : Upload UTBot temp directory content
89
93
if : ${{ always() }}
@@ -93,12 +97,13 @@ jobs:
93
97
path : |
94
98
/tmp/UTBot/generated*/*
95
99
/tmp/UTBot/utbot-childprocess-errors/*
100
+
96
101
- name : Upload test report if tests have failed
97
102
if : ${{ failure() }}
98
103
uses : actions/upload-artifact@v3
99
104
with :
100
105
name : test_report ${{ matrix.project.PART_NAME }}
101
- path : utbot-framework/build/reports/tests/test/*
106
+ path : utbot-framework-test /build/reports/tests/test/*
102
107
103
108
104
109
project :
@@ -109,7 +114,7 @@ jobs:
109
114
# The option forces to execute all jobs even though some of them have failed.
110
115
fail-fast : false
111
116
matrix :
112
- project : [utbot-api, utbot-cli, utbot-core, utbot-framework-api, utbot-fuzzers, utbot-gradle, utbot-instrumentation, utbot-instrumentation-tests, utbot-intellij, utbot-junit-contest, utbot-sample, utbot-summary, utbot-summary-tests]
117
+ project : [utbot-api, utbot-cli, utbot-core, utbot-framework, utbot-framework -api, utbot-fuzzers, utbot-gradle, utbot-instrumentation, utbot-instrumentation-tests, utbot-intellij, utbot-junit-contest, utbot-sample, utbot-summary, utbot-summary-tests]
113
118
runs-on : ubuntu-20.04
114
119
container : unittestbot/java-env:java11-zulu-jdk-gradle7.4.2-kotlinc1.7.0
115
120
steps :
@@ -124,6 +129,7 @@ jobs:
124
129
run : |
125
130
git fetch
126
131
git checkout ${{ github.event.inputs.commit_sha }}
132
+
127
133
- uses : actions/checkout@v3
128
134
with :
129
135
ref : ${{ env.COMMIT_SHA }}
@@ -133,10 +139,12 @@ jobs:
133
139
echo Find your Prometheus metrics using label {instance=\"${GITHUB_RUN_ID}-${HOSTNAME}\"}
134
140
chmod +x ./scripts/monitoring.sh
135
141
./scripts/monitoring.sh ${{ secrets.PUSHGATEWAY_HOSTNAME }} ${{ secrets.PUSHGATEWAY_USER }} ${{ secrets.PUSHGATEWAY_PASSWORD }}
142
+
136
143
- name : Run tests
137
144
run : |
138
145
cd ${{ matrix.project }}
139
146
gradle build --no-daemon
147
+
140
148
- name : Upload test report if tests have failed
141
149
if : ${{ failure() }}
142
150
uses : actions/upload-artifact@v3
0 commit comments