|
40 | 40 | - name: "🕸️ Populate matrix" |
41 | 41 | id: set-matrix |
42 | 42 | run: | |
43 | | - ./gradlew :native-gradle-plugin:dumpFunctionalTestList |
| 43 | + ./gradlew -PmatrixType=gradle :native-gradle-plugin:dumpFunctionalTestList |
44 | 44 |
|
45 | 45 | test-native-gradle-plugin: |
46 | 46 | name: "Sanity checks" |
@@ -118,38 +118,53 @@ jobs: |
118 | 118 | github-token: ${{ secrets.GITHUB_TOKEN }} |
119 | 119 | - name: "❓ Check and test the plugin" |
120 | 120 | run: ./gradlew :native-gradle-plugin:functionalTest -DgradleVersion=${{ matrix.gradle-version }} --tests ${{ matrix.test }} |
121 | | - - name: "❓ Check and test the plugin with configuration cache" |
122 | | - run: ./gradlew :native-gradle-plugin:configCacheFunctionalTest -DgradleVersion=${{ matrix.gradle-config-cache-version }} --tests ${{ matrix.test }} |
123 | 121 | - name: "📜 Upload functional tests results" |
124 | 122 | if: always() |
125 | 123 | uses: actions/upload-artifact@v2 |
126 | 124 | with: |
127 | 125 | name: functional-tests-results-${{ matrix.gradle-version }} |
128 | 126 | path: native-gradle-plugin/build/reports/tests/functionalTest/ |
129 | | - |
130 | | - functional-testing-gradle-plugin-windows: |
131 | | - name: "Windows Gradle plugin functional testing" |
132 | | - if: ${{ false }} |
133 | | - # Disabled due to https://github.com/gradle/native-platform/issues/274 |
134 | | - needs: populate-matrix |
| 127 | + |
| 128 | + populate-cache-matrix: |
| 129 | + name: "Set cache matrix" |
| 130 | + runs-on: "ubuntu-20.04" |
| 131 | + timeout-minutes: 5 |
| 132 | + outputs: |
| 133 | + matrix: ${{ steps.set-matrix.outputs.matrix }} |
| 134 | + steps: |
| 135 | + - name: "☁️ Checkout repository" |
| 136 | + uses: actions/checkout@v3 |
| 137 | + - name: "🔧 Prepare environment" |
| 138 | + uses: graalvm/setup-graalvm@v1 |
| 139 | + with: |
| 140 | + java-version: '17' |
| 141 | + distribution: 'graalvm' |
| 142 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 143 | + - name: "🕸️ Populate matrix" |
| 144 | + id: set-matrix |
| 145 | + run: | |
| 146 | + ./gradlew -PmatrixType=gradleCached :native-gradle-plugin:dumpFunctionalTestList |
| 147 | +
|
| 148 | + functional-testing-gradle-with-cache-version: |
| 149 | + name: "🧪 Gradle: ${{ matrix.test }} on ${{ matrix.os }} with cache gradle version: ${{ matrix.gradle-config-cache-version }}" |
135 | 150 | runs-on: ${{ matrix.os }} |
| 151 | + timeout-minutes: 60 |
| 152 | + needs: populate-cache-matrix |
136 | 153 | strategy: |
137 | 154 | fail-fast: false |
138 | | - matrix: |
139 | | - java-version: [ 17 ] |
140 | | - os: [ windows-latest ] |
| 155 | + matrix: ${{fromJson(needs.populate-cache-matrix.outputs.matrix)}} |
141 | 156 | steps: |
142 | 157 | - name: "☁️ Checkout repository" |
143 | 158 | uses: actions/checkout@v3 |
144 | 159 | - uses: ./.github/actions/prepare-environment |
145 | 160 | with: |
146 | 161 | java-version: ${{ matrix.java-version }} |
147 | 162 | github-token: ${{ secrets.GITHUB_TOKEN }} |
148 | | - - name: "❓ Check and test the Gradle plugin" |
149 | | - run: ./gradlew :native-gradle-plugin:functionalTest --no-daemon --fail-fast |
150 | | - - name: "📜 Upload tests results" |
| 163 | + - name: "❓ Check and test the plugin with configuration cache" |
| 164 | + run: ./gradlew :native-gradle-plugin:configCacheFunctionalTest -DgradleVersion=${{ matrix.gradle-config-cache-version }} --tests ${{ matrix.test }} |
| 165 | + - name: "📜 Upload functional tests results" |
151 | 166 | if: always() |
152 | | - uses: actions/upload-artifact@v3 |
| 167 | + uses: actions/upload-artifact@v2 |
153 | 168 | with: |
154 | | - name: windows-gradle-functional-tests-results |
155 | | - path: native-gradle-plugin/build/reports/tests/ |
| 169 | + name: functional-tests-results-${{ matrix.gradle-config-cache-version }} |
| 170 | + path: native-gradle-plugin/build/reports/tests/functionalTest/ |
0 commit comments