mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-19 19:37:59 +02:00
Update docker compose test to simplify it and make it more reliable
This commit is contained in:
parent
3c5092161a
commit
3baef9aeff
8
.github/workflows/docker-compose-test.yml
vendored
8
.github/workflows/docker-compose-test.yml
vendored
@ -38,8 +38,12 @@ jobs:
|
||||
source ~/.bashrc
|
||||
# Check that hishtory query runs without errors
|
||||
./hishtory query
|
||||
# And check that entries get recorded properly
|
||||
echo -e 'ls -Slah /\nhishtory export\n' | zsh -is | grep "ls -Slah /"
|
||||
# Run a command such that hishtory will record it
|
||||
echo -e 'ls -Slah /\n' | zsh -is
|
||||
# Sleep to ensure there is time for it to be recorded, since recordings are async
|
||||
sleep 1
|
||||
# And check that it was recorded
|
||||
./hishtory export | grep "ls -Slah /"
|
||||
# Assert that the entry is syncing properly
|
||||
./hishtory status -v | grep 'Sync Status: Synced'
|
||||
- name: Setup tmate session
|
||||
|
Loading…
x
Reference in New Issue
Block a user