|
92 | 92 | echo "inner_container_image=$(cat ./building/linux-container-image.txt)" >> $GITHUB_ENV
|
93 | 93 | outputs:
|
94 | 94 | container_image: ${{ env.inner_container_image }}
|
| 95 | + |
95 | 96 | build-linux:
|
96 | 97 | name: Build Linux
|
97 | 98 | needs: prepare-linux
|
@@ -126,6 +127,29 @@ jobs:
|
126 | 127 | ./dist/*.deb
|
127 | 128 | ./dist/app-e2e-*
|
128 | 129 |
|
| 130 | + test-framework-linux: |
| 131 | + name: Pre-compile test framework |
| 132 | + needs: prepare-linux |
| 133 | + runs-on: ubuntu-latest |
| 134 | + container: |
| 135 | + image: ${{ needs.prepare-linux.outputs.container_image }} |
| 136 | + continue-on-error: true |
| 137 | + steps: |
| 138 | + # Fix for HOME path overridden by GH runners when building in containers, see: |
| 139 | + # https://github.com/actions/runner/issues/863 |
| 140 | + - name: Fix HOME path |
| 141 | + run: echo "HOME=/root" >> $GITHUB_ENV |
| 142 | + - name: Checkout repository |
| 143 | + uses: actions/checkout@v4 |
| 144 | + - name: Build test framework |
| 145 | + working-directory: test |
| 146 | + run: ./scripts/container-run.sh ./scripts/build.sh |
| 147 | + - uses: actions/upload-artifact@v3 |
| 148 | + with: |
| 149 | + name: test-framework-linux |
| 150 | + path: | |
| 151 | + ./test/dist/* |
| 152 | +
|
129 | 153 | e2e-test-linux:
|
130 | 154 | name: Linux end-to-end tests
|
131 | 155 | needs: [prepare-matrices, build-linux]
|
@@ -306,25 +330,26 @@ jobs:
|
306 | 330 |
|
307 | 331 | compile-test-matrix:
|
308 | 332 | name: Result matrix
|
309 |
| - needs: [e2e-test-linux, e2e-test-windows, e2e-test-macos] |
| 333 | + needs: [e2e-test-linux, e2e-test-windows, e2e-test-macos, test-framework-linux] |
310 | 334 | if: '!cancelled()'
|
311 | 335 | runs-on: [self-hosted, desktop-test, Linux]
|
312 | 336 | timeout-minutes: 240
|
313 | 337 | strategy:
|
314 | 338 | fail-fast: false
|
315 | 339 | steps:
|
316 |
| - - name: Checkout repository |
317 |
| - uses: actions/checkout@v4 |
318 | 340 | - uses: actions/download-artifact@v3
|
319 | 341 | with:
|
320 | 342 | path: ./test/.ci-logs/artifacts
|
| 343 | + - uses: actions/download-artifact@v3 |
| 344 | + with: |
| 345 | + name: test-framework-linux |
321 | 346 | - name: Generate test result matrix
|
322 | 347 | shell: bash -ieo pipefail {0}
|
323 | 348 | run: |
|
324 | 349 | cd test
|
325 | 350 | # "Unpack" the downloaded report artifacts: https://github.com/actions/download-artifact/issues/141
|
326 | 351 | cp ./.ci-logs/artifacts/*_report/*_report ./.ci-logs/
|
327 |
| - cargo run --bin test-manager format-test-reports ./.ci-logs/*_report \ |
| 352 | + ${{ inputs.workspace }}/test-manager format-test-reports ./.ci-logs/*_report \ |
328 | 353 | | tee summary.html >> $GITHUB_STEP_SUMMARY
|
329 | 354 | - uses: actions/upload-artifact@v3
|
330 | 355 | with:
|
|
0 commit comments