2828 lint :
2929 name : Lint
3030 runs-on : ubuntu-latest
31+ defaults :
32+ run :
33+ working-directory : jetbrains
3134 steps :
3235
3336 # Check out the current repository
5457 name : Build
5558 needs : [ validateCommits, lint ]
5659 runs-on : ubuntu-latest
60+ defaults :
61+ run :
62+ working-directory : jetbrains
5763 outputs :
5864 version : ${{ steps.update_version.outputs.version }}
5965 previous_version : ${{ steps.update_version.outputs.previous_version }}
8187 run : |
8288 CURRENT_VERSION=$(grep 'pluginVersion' gradle.properties | cut -d'=' -f2 | tr -d ' ')
8389
84- chmod +x ./scripts/update-version.sh
85- ./scripts/update-version.sh
90+ chmod +x .. /scripts/update-version.sh
91+ .. /scripts/update-version.sh
8692
8793 VERSION=$(grep 'pluginVersion' gradle.properties | cut -d'=' -f2 | tr -d ' ')
8894 echo "version=$VERSION" >> $GITHUB_OUTPUT
@@ -108,7 +114,7 @@ jobs:
108114 id : artifact
109115 shell : bash
110116 run : |
111- cd ${{ github.workspace }}/build/distributions
117+ cd ${{ github.workspace }}/jetbrains/ build/distributions
112118 FILENAME=`ls *.zip`
113119 unzip "$FILENAME" -d content
114120
@@ -120,14 +126,17 @@ jobs:
120126 uses : actions/upload-artifact@v6
121127 with :
122128 name : ${{ steps.artifact.outputs.filename }}
123- path : ./build/distributions/content/*/*
129+ path : ./jetbrains/ build/distributions/content/*/*
124130
125131 # Run tests and upload a code coverage report
126132 test :
127133 name : Test
128134 needs : [ build ]
129135 runs-on : ubuntu-latest
130136 environment : production
137+ defaults :
138+ run :
139+ working-directory : jetbrains
131140 steps :
132141
133142 # Free GitHub Actions Environment Disk Space
@@ -164,13 +173,13 @@ jobs:
164173 uses : actions/upload-artifact@v6
165174 with :
166175 name : tests-result
167- path : ${{ github.workspace }}/build/reports/tests
176+ path : ${{ github.workspace }}/jetbrains/ build/reports/tests
168177
169178 # Upload the Kover report to CodeCov
170179 - name : Upload Code Coverage Report
171180 uses : codecov/codecov-action@v5
172181 with :
173- files : ${{ github.workspace }}/build/reports/kover/report.xml
182+ files : ${{ github.workspace }}/jetbrains/ build/reports/kover/report.xml
174183 token : ${{ secrets.CODECOV_TOKEN }}
175184
176185 # Run Qodana inspections and provide a report
@@ -216,6 +225,9 @@ jobs:
216225 name : Verify plugin
217226 needs : [ build ]
218227 runs-on : ubuntu-latest
228+ defaults :
229+ run :
230+ working-directory : jetbrains
219231 steps :
220232
221233 # Free GitHub Actions Environment Disk Space
@@ -254,7 +266,7 @@ jobs:
254266 uses : actions/upload-artifact@v6
255267 with :
256268 name : pluginVerifier-result
257- path : ${{ github.workspace }}/build/reports/pluginVerifier
269+ path : ${{ github.workspace }}/jetbrains/ build/reports/pluginVerifier
258270
259271 # Prepare a draft release for GitHub Releases page for the manual verification
260272 # If accepted and published, the release workflow would be triggered
@@ -265,6 +277,9 @@ jobs:
265277 runs-on : ubuntu-latest
266278 permissions :
267279 contents : write
280+ defaults :
281+ run :
282+ working-directory : jetbrains
268283 steps :
269284
270285 # Check out the current repository
0 commit comments