diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index dd2a33a6f..fd4be55ff 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -63,13 +63,34 @@ jobs: security-events: write # UI tests + prepare-tests-ui: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - id: set-matrix + run: | + tests=$(find ./tests/ui/ -name "*_page.py" -type f -printf "%f\n" | jq -c --raw-input --slurp 'split("\n")| .[0:-1]') + echo "tests=$tests" >> $GITHUB_OUTPUT + outputs: + tests: ${{ steps.set-matrix.outputs.tests }} tests-ui: - needs: [codeql, build-containers] + needs: [prepare-tests-ui, build-containers] + strategy: + fail-fast: false + matrix: + test: ${{ fromJson(needs.prepare-tests-ui.outputs.tests) }} uses: ./.github/workflows/tests-ui.yml with: + TEST: ${{ matrix.test }} RELEASE: ui tests-ui-linux: - needs: [codeql, build-packages] + needs: [prepare-tests-ui, build-packages] + strategy: + fail-fast: false + matrix: + test: ${{ fromJson(needs.prepare-tests-ui.outputs.tests) }} uses: ./.github/workflows/tests-ui-linux.yml with: + TEST: ${{ matrix.test }} RELEASE: ui