@@ -30,21 +30,21 @@ jobs:
3030 remove-haskell : true
3131
3232 - name : Fetch Sources
33- uses : actions/checkout@v3
33+ uses : actions/checkout@v4
3434 with :
3535 ref : ${{ inputs.ref-name }}
3636
3737 - name : Setup Java
38- uses : actions/setup-java@v3
38+ uses : actions/setup-java@v4
3939 with :
4040 java-version : ' 17'
4141 distribution : ' corretto'
4242
4343 - name : Setup dotnet
44- uses : actions/setup-dotnet@v2
44+ uses : actions/setup-dotnet@v4
4545 with :
4646 dotnet-version : |
47- 6 .0.411
47+ 8 .0.301
4848
4949 # # wrapper-validation-action fails too often with this error https://github.com/gradle/wrapper-validation-action/issues/40
5050 # # we don't need it because we usually don't have contributors replacing it
@@ -56,20 +56,28 @@ jobs:
5656 if : ${{ inputs.build-with-rider != 'true' }}
5757 env :
5858 POSTHOG_TOKEN_URL : ${{ secrets.POSTHOG_TOKEN_URL }}
59- run : ./gradlew clean test buildPlugin --no-configuration-cache -PbuildProfile=${{ inputs.build-profile }} -PdoNotDownloadSources =true
59+ run : ./gradlew clean test buildPlugin --no-configuration-cache -PbuildProfile=${{ inputs.build-profile }} -PbuildSearchableOptions =true
6060
6161 - name : Build Plugin with Rider
6262 if : ${{ inputs.build-with-rider == 'true' }}
6363 env :
6464 POSTHOG_TOKEN_URL : ${{ secrets.POSTHOG_TOKEN_URL }}
65- run : ./gradlew clean test buildPlugin --no-configuration-cache -PbuildWithRider=true -PbuildProfile=${{ inputs.build-profile }} -PdoNotDownloadSources=true
65+ run : ./gradlew clean test buildPlugin --no-configuration-cache -PbuildWithRider=true -PbuildProfile=${{ inputs.build-profile }} -PbuildSearchableOptions=true
66+
67+ - name : Export Version
68+ id : exportversion
69+ shell : bash
70+ run : |
71+ VERSION=$(cat version.properties |grep "version="|cut -d= -f2)
72+ echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
6673
6774 - name : Find posthog url
6875 id : posthog
6976 shell : bash
7077 run : |
78+ IJ_RELEASE_NUMBER=$(echo "${{ inputs.build-profile }}"|cut -c 2-)
7179 cd ${{ github.workspace }}/build/libs
72- FILENAME=`ls instrumented- digma-intellij-plugin* .jar`
80+ FILENAME=`ls digma-intellij-plugin-${{ steps.exportversion.outputs.version }}+$IJ_RELEASE_NUMBER .jar`
7381 unzip -q "$FILENAME" -d content
7482 URL=$(cat ./content/posthog-token-url.txt)
7583 echo "url=${URL}" >> "$GITHUB_OUTPUT"
8088
8189 - name : Verify posthog url exists
8290 if : ${{ steps.posthog.outputs.url == '' }}
83- uses : actions/github-script@v3
91+ uses : actions/github-script@v7
8492 with :
8593 script : |
8694 core.setFailed('posthog url is empty')
97105
98106 - name : Upload Artifact
99107 if : ${{ inputs.build-with-rider != 'true' }}
100- uses : actions/upload-artifact@v3
108+ uses : actions/upload-artifact@v4
101109 with :
102110 name : ${{ steps.artifact.outputs.filename }}
103111 path : ./build/distributions/content/*/*
@@ -107,7 +115,7 @@ jobs:
107115 # #todo: add other modules test reports
108116 - name : Collect Tests Result
109117 if : ${{ inputs.build-with-rider != 'true' || failure() }}
110- uses : actions/upload-artifact@v3
118+ uses : actions/upload-artifact@v4
111119 with :
112120 name : tests-result-${{ inputs.build-profile }}
113121 path : ${{ github.workspace }}/ide-common/build/reports/tests
0 commit comments