Use GitHub Actions
greymd opened this issue · comments
Let us consider to use GitHub Actions.
I expect testing time becomes shorter than usual since it can run many processes parallelly than TravisCI. I guess.
It is impossible to migrate tests to GitHub Actions.
Here is the current testing environment provided by TravisCI.
tmux session can be opened since pseudo-terminal is provided.
In GitHub Actions however, all the standard stream are connecting to pipes.
We cannot simulate tmux-xpanes because tmux session cannot be opened properly.
Let me give up GitHub Actions.
That message means you need to set TERM
, try setting TERM=ansi
or TERM=xterm
.
But you would be better if possible just to have tmux detached, although perhaps that is impossible with how your tests work.
thx @nicm
tmux
works on GitHub Actions and test is passed!
Migration is over.
tmux-xpane's test had taken over 6 hours before.
https://travis-ci.org/github/greymd/tmux-xpanes/builds/676944678
However, it only takes less than 30 minutes now.
https://github.com/greymd/tmux-xpanes/actions/runs/97156917
Finally tmux works inside of GitHub Actions by using script
, setting TERM
variable and providing terminal size with stty
like this.
script -e -c /bin/bash -c 'stty rows 40 cols 80;TERM=xterm bash ./test.sh'