Skip to content

Commit c8c276d

Browse files
fix version increment push step order to reflect the new version on sonar for dev branch
1 parent 070af70 commit c8c276d

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/dev-deploy.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,6 @@ jobs:
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: |
@@ -77,4 +59,22 @@ jobs:
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 }}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ kotlin.mpp.enableCInteropCommonization=true
1111
android.useAndroidX=true
1212
android.nonTransitiveRClass=true
1313
#Library
14-
library.version=0.0.1
14+
library.version=0.0.0

0 commit comments

Comments
 (0)