ci: add install smoke test for Windows and Unix

Verifies that `officecli install` copies the binary to the correct
platform-specific path: %LOCALAPPDATA%\OfficeCli\officecli.exe on
Windows, ~/.local/bin/officecli on Unix. Catches regressions like
missing .exe suffix or wrong install directory.

https://claude.ai/code/session_01BpqYmWM5foMiRjEXBxxcEh
This commit is contained in:
Claude 2026-04-14 02:44:43 +00:00
parent efeaf912e6
commit 43295c82b5
No known key found for this signature in database

View file

@ -101,6 +101,25 @@ jobs:
publish/${{ matrix.name }} close test_smoke.docx
rm -f test_smoke.docx
- name: Smoke test - install
if: >-
(matrix.rid == 'osx-arm64' && runner.arch == 'ARM64') ||
(matrix.rid == 'osx-x64' && runner.arch == 'X64') ||
(matrix.rid == 'linux-x64' && runner.os == 'Linux') ||
(matrix.rid == 'win-x64' && runner.os == 'Windows')
env:
MSYS_NO_PATHCONV: '1'
MSYS2_ARG_CONV_EXCL: '*'
run: |
publish/${{ matrix.name }} install
if [ "$RUNNER_OS" == "Windows" ]; then
test -f "$LOCALAPPDATA/OfficeCli/officecli.exe" || { echo "FAIL: officecli.exe not found in %LOCALAPPDATA%\\OfficeCli"; exit 1; }
"$LOCALAPPDATA/OfficeCli/officecli.exe" --version
else
test -f "$HOME/.local/bin/officecli" || { echo "FAIL: officecli not found in ~/.local/bin"; exit 1; }
"$HOME/.local/bin/officecli" --version
fi
- name: Upload artifact
uses: actions/upload-artifact@v4
with: