From ff371ee7170527caa1f57a2fd460a2a8a271ebfd Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Fri, 27 Dec 2024 11:45:52 +0100 Subject: [PATCH] Try CI reconfiguration --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30d2136d0..836d3f11b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,6 +188,7 @@ jobs: ls ~/.local$BIN_DIR/quotest - name: Run tests + if: runner.os != "Windows" env: TEST_USER: ${{ secrets.TEST_USER }} TEST_PWD: ${{ secrets.TEST_PWD }} @@ -207,6 +208,22 @@ jobs: quotest "$TEST_USER" "$TEST_PWD" quotest-gha '#quotest:matrix.org' "$QUOTEST_ORIGIN" timeout-minutes: 4 # quotest is supposed to finish within 3 minutes, actually + - name: Run tests (Windows) + if: runner.os == "Windows" + shell: pwsh + env: + TEST_USER: ${{ secrets.TEST_USER }} + TEST_PWD: ${{ secrets.TEST_PWD }} + QT_ASSUME_STDERR_HAS_CONSOLE: 1 # Windows needs this for meaningful debug output + QT_LOGGING_RULES: 'quotient.*.debug=true;quotient.jobs.sync.debug=false;quotient.events.ephemeral.debug=false;quotient.events.state.debug=false;quotient.events.members.debug=false' + QT_MESSAGE_PATTERN: '%{time h:mm:ss.zzz}|%{category}|%{if-debug}D%{endif}%{if-info}I%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endif}|%{message}' + run: | + ctest --test-dir $BUILD_PATH --output-on-failure -E testolmaccount + if ($env:TEST_USER) { + quotest "$env:TEST_USER%" "$env:TEST_PWD%" quotest-gha '#quotest:matrix.org' "$env:QUOTEST_ORIGIN" + } + timeout-minutes: 4 # quotest is supposed to finish within 3 minutes, actually + - name: Perform CodeQL analysis if: matrix.static-analysis == 'codeql' uses: github/codeql-action/analyze@v3