mirror of
https://github.com/iOfficeAI/OfficeCLI
synced 2026-04-21 13:37:23 +00:00
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:
parent
efeaf912e6
commit
43295c82b5
1 changed files with 19 additions and 0 deletions
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue