3636 run : ./gradlew clean linuxX64Test
3737 - name : Jvm Test
3838 run : ./gradlew clean jvmTest
39- - name : Cache SonarQube packages
40- uses : actions/cache@v3
41- with :
42- path : ~/.sonar/cache
43- key : ${{ runner.os }}-sonar
44- restore-keys : ${{ runner.os }}-sonar
45- - name : Generate Kover reports
46- run : ./gradlew koverXmlReport
47- - name : Run SonarCloud Analysis
48- run : |
49- ./gradlew sonar \
50- -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} \
51- -Dsonar.organization=${{ secrets.SONAR_ORG }} \
52- -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }}
53- env :
54- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
55- - name : Run Detekt Analysis
56- run : ./gradlew detekt
5739 - name : Increment version
5840 id : version
5941 run : |
7759 git config user.email "kotlin-monads-multiplatform-library-github-actions[bot]@users.noreply.github.com"
7860 git add gradle.properties
7961 git commit -m "chore: bump version to ${{ steps.version.outputs.new_version }} [skip ci]"
80- git push
62+ git push
63+ - name : Run Detekt Analysis
64+ run : ./gradlew detekt
65+ - name : Cache SonarQube packages
66+ uses : actions/cache@v3
67+ with :
68+ path : ~/.sonar/cache
69+ key : ${{ runner.os }}-sonar
70+ restore-keys : ${{ runner.os }}-sonar
71+ - name : Generate Kover reports
72+ run : ./gradlew koverXmlReport
73+ - name : Run SonarCloud Analysis
74+ run : |
75+ ./gradlew sonar \
76+ -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} \
77+ -Dsonar.organization=${{ secrets.SONAR_ORG }} \
78+ -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }}
79+ env :
80+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
0 commit comments