From f57f3ab523f0023f2a127b312223a432c5e2ee46 Mon Sep 17 00:00:00 2001 From: Seweryn Presnal Date: Sun, 24 Sep 2023 23:24:37 +0100 Subject: [PATCH 1/4] try_running_executable_on_macos job --- .github/workflows/test.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 377b8767..f340266d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,4 +48,25 @@ jobs: - name: "Test" working-directory: Fronter.NET.Tests run: | - dotnet test \ No newline at end of file + dotnet test + + try_running_executable_on_macos: + runs-on: macos-13 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + - name: "Setup Dotnet for use with actions" + uses: actions/setup-dotnet@v3 + with: + global-json-file: global.json + - name: "Build frontend" + uses: .github/actions/build_frontend + with: + fronter_dir: '.' + release_dir: 'Publish' + - name: "Run executable" + working-directory: Publish + run: | + ./ConverterFrontend From 0f1e62afde89fc1a61786536a7890e1627065e48 Mon Sep 17 00:00:00 2001 From: Seweryn Presnal Date: Sun, 24 Sep 2023 23:26:19 +0100 Subject: [PATCH 2/4] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f340266d..d8221c54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,7 @@ jobs: with: global-json-file: global.json - name: "Build frontend" - uses: .github/actions/build_frontend + uses: ./.github/actions/build_frontend with: fronter_dir: '.' release_dir: 'Publish' From 1599bff56790442e6f4a81cbabce3a63628ab103 Mon Sep 17 00:00:00 2001 From: iht Date: Mon, 14 Sep 2026 02:05:54 +0200 Subject: [PATCH 3/4] Fix macOS smoke test launch step --- .github/workflows/test.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e31a3aff..332e7df1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -148,5 +148,22 @@ jobs: build_updater: false - name: "Run executable" working-directory: Publish + shell: bash run: | - ./ConverterFrontend + set -euo pipefail + + nohup ./ConverterFrontend >/tmp/ConverterFrontend.log 2>&1 & + app_pid=$! + + echo "Started ConverterFrontend in background (pid $app_pid)" + sleep 5 + + if ! kill -0 "$app_pid" 2>/dev/null; then + echo "ConverterFrontend exited immediately after launch." >&2 + cat /tmp/ConverterFrontend.log || true + exit 1 + fi + + kill -TERM "$app_pid" || true + sleep 1 + echo "ConverterFrontend launched successfully; terminating background process to allow CI to continue." From e6e9656fee58accc836469f33fd926c71c2d037f Mon Sep 17 00:00:00 2001 From: iht Date: Mon, 14 Sep 2026 02:09:58 +0200 Subject: [PATCH 4/4] Check warnings and errors in macOS log smoke test --- .github/workflows/test.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 332e7df1..251bd0d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -164,6 +164,20 @@ jobs: exit 1 fi + log_file="$(pwd)/log.txt" + if [ ! -f "$log_file" ]; then + echo "ConverterFrontend did not create log.txt." >&2 + cat /tmp/ConverterFrontend.log || true + exit 1 + fi + + if ! grep -Eqi 'WARN|ERROR|Exception|Failed|panic|fatal' "$log_file"; then + echo "log.txt was created but no warnings/errors were emitted." >&2 + echo "--- log.txt preview ---" >&2 + tail -n 50 "$log_file" >&2 || true + exit 1 + fi + + echo "ConverterFrontend launched successfully and wrote warnings/errors to log.txt; terminating background process to allow CI to continue." kill -TERM "$app_pid" || true sleep 1 - echo "ConverterFrontend launched successfully; terminating background process to allow CI to continue."