Skip to content

Commit b6fb213

Browse files
Add utbot-framework-test to actions
1 parent ce180b1 commit b6fb213

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build-and-run-tests-from-branch.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
TASKS=$(echo $(cat .github/workflows/framework-tests-matrix.json))
4646
echo "::set-output name=matrix::$TASKS"
4747
echo $TASKS
48-
framework:
48+
49+
framework-test:
4950
# This job does not need to wait for 'prepare-tests-matrix' result.
5051
# GitHub allocates runners portionally. Framework tests are time consuming. That's why we want to force them
5152
# to start execution early.
@@ -70,20 +71,23 @@ jobs:
7071
run: |
7172
git fetch
7273
git checkout ${{ github.event.inputs.commit_sha }}
74+
7375
- name: Run monitoring
7476
run: |
7577
echo Find your Prometheus metrics using label {instance=\"${GITHUB_RUN_ID}-${HOSTNAME}\"}
7678
chmod +x ./scripts/monitoring.sh
7779
./scripts/monitoring.sh ${{ secrets.PUSHGATEWAY_HOSTNAME }} ${{ secrets.PUSHGATEWAY_USER }} ${{ secrets.PUSHGATEWAY_PASSWORD }}
80+
7881
- name: Run tests
7982
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+
8185
- name: Upload logs
8286
if: ${{ always() }}
8387
uses: actions/upload-artifact@v3
8488
with:
8589
name: logs ${{ matrix.project.PART_NAME }}
86-
path: utbot-framework/logs/*
90+
path: utbot-framework-test/logs/*
8791

8892
- name: Upload UTBot temp directory content
8993
if: ${{ always() }}
@@ -93,12 +97,13 @@ jobs:
9397
path: |
9498
/tmp/UTBot/generated*/*
9599
/tmp/UTBot/utbot-childprocess-errors/*
100+
96101
- name: Upload test report if tests have failed
97102
if: ${{ failure() }}
98103
uses: actions/upload-artifact@v3
99104
with:
100105
name: test_report ${{ matrix.project.PART_NAME }}
101-
path: utbot-framework/build/reports/tests/test/*
106+
path: utbot-framework-test/build/reports/tests/test/*
102107

103108

104109
project:
@@ -109,7 +114,7 @@ jobs:
109114
# The option forces to execute all jobs even though some of them have failed.
110115
fail-fast: false
111116
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]
113118
runs-on: ubuntu-20.04
114119
container: unittestbot/java-env:java11-zulu-jdk-gradle7.4.2-kotlinc1.7.0
115120
steps:
@@ -124,6 +129,7 @@ jobs:
124129
run: |
125130
git fetch
126131
git checkout ${{ github.event.inputs.commit_sha }}
132+
127133
- uses: actions/checkout@v3
128134
with:
129135
ref: ${{ env.COMMIT_SHA }}
@@ -133,10 +139,12 @@ jobs:
133139
echo Find your Prometheus metrics using label {instance=\"${GITHUB_RUN_ID}-${HOSTNAME}\"}
134140
chmod +x ./scripts/monitoring.sh
135141
./scripts/monitoring.sh ${{ secrets.PUSHGATEWAY_HOSTNAME }} ${{ secrets.PUSHGATEWAY_USER }} ${{ secrets.PUSHGATEWAY_PASSWORD }}
142+
136143
- name: Run tests
137144
run: |
138145
cd ${{ matrix.project }}
139146
gradle build --no-daemon
147+
140148
- name: Upload test report if tests have failed
141149
if: ${{ failure() }}
142150
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)