99 description : " commit SHA: e.g. cab4799c"
1010
1111jobs :
12- build_and_run_tests :
12+ publish_on_github_packages :
1313 if : ${{ github.actor == 'korifey' || github.actor == 'denis-fokin' || github.actor == 'victoriafomina' ||
1414 github.actor == 'bissquit' }}
1515 runs-on : ubuntu-20.04
16+ permissions :
17+ packages : write
18+ contents : read
1619 steps :
1720 - uses : actions/checkout@v3
1821 - uses : actions/setup-java@v3
@@ -24,12 +27,17 @@ jobs:
2427 - uses : gradle/gradle-build-action@v2
2528 with :
2629 gradle-version : 6.8
27-
30+
31+ - name : Check out ${{ github.event.inputs.commit-sha }} commit
32+ run : |
33+ git fetch
34+ git checkout ${{ github.event.inputs.commit-sha }}
35+
2836 - name : " UTBot Java: build and run tests"
2937 run : |
3038 export KOTLIN_HOME="/usr"
3139 gradle clean build --no-daemon
32-
40+
3341 - name : Upload utbot-framework logs
3442 if : ${{ failure() }}
3543 uses : actions/upload-artifact@v2
@@ -43,45 +51,11 @@ jobs:
4351 with :
4452 name : utbot_framework_tests_report
4553 path : utbot-framework/build/reports/tests/test/*
46-
47- publish_utbot :
48- needs : build_and_run_tests
49- runs-on : ubuntu-20.04
50- permissions :
51- packages : write
52- contents : read
53- steps :
54- - uses : actions/checkout@v3
55- - uses : actions/setup-java@v3
56- with :
57- java-version : ' 8'
58- distribution : ' zulu'
59- java-package : jdk+fx
60- cache : gradle
54+
6155 - uses : gradle/gradle-build-action@v2
6256 with :
6357 gradle-version : 6.8
6458 arguments : publish
6559 env :
6660 GITHUB_ACTOR : ${{ github.actor }}
6761 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68-
69- - name : Check out ${{ github.event.inputs.commit-sha }} commit
70- run : |
71- git fetch
72- git checkout ${{ github.event.inputs.commit-sha }}
73-
74- - name : " utbot-framework-api: build and run tests"
75- run : |
76- cd utbot-framework-api
77- gradle clean build --no-daemon
78-
79- - name : " utbot-api: build"
80- run : |
81- cd utbot-api
82- gradle clean build --no-daemon
83-
84- - name : " utbot-core: build"
85- run : |
86- cd utbot-core
87- gradle clean build --no-daemon
0 commit comments