|
1 | | -# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps: |
| 1 | +# GitHub Actions Workflow is created for preparing the plugin release in the following steps: |
2 | 2 | # - Validate Gradle Wrapper. |
3 | | -# - Run 'test' and 'verifyPlugin' tasks. |
4 | | -# - Run Qodana inspections. |
5 | | -# - Run the 'buildPlugin' task and prepare artifact for further tests. |
| 3 | +# - Run 'verifyPlugin' task. |
| 4 | +# - Run the 'buildPlugin' task and prepare artifact. |
6 | 5 | # - Run the 'runPluginVerifier' task. |
7 | 6 | # - Create a draft release. |
8 | 7 | # |
|
95 | 94 | name: ${{ steps.artifact.outputs.filename }} |
96 | 95 | path: ./build/distributions/content/*/* |
97 | 96 |
|
98 | | - # Run tests and upload a code coverage report |
99 | | - test: |
100 | | - name: Test |
101 | | - needs: [ build ] |
102 | | - runs-on: ubuntu-latest |
103 | | - steps: |
104 | | - |
105 | | - # Check out the current repository |
106 | | - - name: Fetch Sources |
107 | | - uses: actions/checkout@v4 |
108 | | - |
109 | | - # Set up Java environment for the next steps |
110 | | - - name: Setup Java |
111 | | - uses: actions/setup-java@v4 |
112 | | - with: |
113 | | - distribution: zulu |
114 | | - java-version: 17 |
115 | | - |
116 | | - # Setup Gradle |
117 | | - - name: Setup Gradle |
118 | | - uses: gradle/actions/setup-gradle@v3 |
119 | | - with: |
120 | | - gradle-home-cache-cleanup: true |
121 | | - |
122 | | - # Run tests |
123 | | - - name: Run Tests |
124 | | - run: ./gradlew check |
125 | | - |
126 | | - # Collect Tests Result of failed tests |
127 | | - - name: Collect Tests Result |
128 | | - if: ${{ failure() }} |
129 | | - uses: actions/upload-artifact@v4 |
130 | | - with: |
131 | | - name: tests-result |
132 | | - path: ${{ github.workspace }}/build/reports/tests |
133 | | - |
134 | | - # Upload the Kover report to CodeCov |
135 | | - - name: Upload Code Coverage Report |
136 | | - uses: codecov/codecov-action@v4 |
137 | | - with: |
138 | | - files: ${{ github.workspace }}/build/reports/kover/report.xml |
139 | | - |
140 | | - # Run Qodana inspections and provide report |
141 | | - inspectCode: |
142 | | - name: Inspect code |
143 | | - needs: [ build ] |
144 | | - runs-on: ubuntu-latest |
145 | | - permissions: |
146 | | - contents: write |
147 | | - checks: write |
148 | | - pull-requests: write |
149 | | - steps: |
150 | | - |
151 | | - # Free GitHub Actions Environment Disk Space |
152 | | - - name: Maximize Build Space |
153 | | - uses: jlumbroso/free-disk-space@main |
154 | | - with: |
155 | | - tool-cache: false |
156 | | - large-packages: false |
157 | | - |
158 | | - # Check out the current repository |
159 | | - - name: Fetch Sources |
160 | | - uses: actions/checkout@v4 |
161 | | - |
162 | | - # Set up Java environment for the next steps |
163 | | - - name: Setup Java |
164 | | - uses: actions/setup-java@v4 |
165 | | - with: |
166 | | - distribution: zulu |
167 | | - java-version: 17 |
168 | | - |
169 | | - # Run Qodana inspections |
170 | | - - name: Qodana - Code Inspection |
171 | | - |
172 | | - with: |
173 | | - cache-default-branch-only: true |
174 | | - |
175 | 97 | # Run plugin structure verification along with IntelliJ Plugin Verifier |
176 | 98 | verify: |
177 | 99 | name: Verify plugin |
@@ -227,7 +149,7 @@ jobs: |
227 | 149 | releaseDraft: |
228 | 150 | name: Release draft |
229 | 151 | if: github.event_name != 'pull_request' |
230 | | - needs: [ build, test, inspectCode, verify ] |
| 152 | + needs: [ build, verify ] |
231 | 153 | runs-on: ubuntu-latest |
232 | 154 | permissions: |
233 | 155 | contents: write |
|
0 commit comments