From 4f543df15c54bee52cecba72cbf05f39ea28bbcc Mon Sep 17 00:00:00 2001 From: Lifailon Date: Tue, 1 Apr 2025 08:40:00 +0300 Subject: [PATCH] add check release: flags and tmux --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2fcced6..1f92ae8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,10 @@ on: description: 'Unit testing' default: false type: boolean + Release: + description: 'Check release' + default: false + type: boolean Binary: description: 'Build binary' default: false @@ -117,7 +121,7 @@ jobs: continue-on-error: true # macOS - - name: Unit testing (files, flags and run main interface) in macOS + - name: Unit testing (files, flags, cli and run main interface) in macOS if: ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'macos-15' }} run: sudo go test -v -cover --run "TestUnixFiles|TestFlags|TestCommandColor|TestMainInterface" continue-on-error: true @@ -137,7 +141,7 @@ jobs: shell: pwsh continue-on-error: true - - name: Unit testing (events, files, flags and interface) in Windows + - name: Unit testing (events, files, flags, cli, main and mock interface) in Windows if: ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'windows-2022' }} run: go test -v -cover --run "TestWin.*|TestFlags|TestCommandColor|TestMainInterface|TestMockInterface" continue-on-error: true @@ -149,6 +153,25 @@ jobs: shell: pwsh continue-on-error: true + - name: Install binary from latest release on GitHub + if: ${{ github.event.inputs.Release == 'true' }} + run: curl -sS https://raw.githubusercontent.com/Lifailon/lazyjournal/main/install.sh | bash + + - name: Check flags (cli mode) + if: ${{ github.event.inputs.Release == 'true' }} + run: | + lazyjournal -v + lazyjournal -a + # curl -s https://raw.githubusercontent.com/Lifailon/lazyjournal/refs/heads/main/color.log | lazyjournal -c + + - name: Check interface in TMUX + if: ${{ github.event.inputs.Release == 'true' }} + run: | + tmux new-session -d -s test-session "lazyjournal" + sleep 1 + tmux capture-pane -p + tmux kill-session -t test-session + # Build - name: Build binaries if: ${{ github.event.inputs.Binary == 'true' }}