-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add test workflow, update scripts
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: 'test' | ||
on: | ||
push: | ||
branches: | ||
- refactor/wm_properties | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install test dependencies | ||
run: sudo apt-get install -y i3-wm gcc gpick xterm | ||
|
||
- name: Setup test environment | ||
uses: coactions/setup-xvfb@v1 | ||
with: | ||
run: script/test_env.sh | ||
options: :99.0 | ||
|
||
- name: Run tests | ||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
vagrant up | ||
vagrant ssh -c "cd /vagrant; script/setup.sh; cargo clean; cargo test" | ||
vagrant ssh -c "cd /vagrant; script/xvfb.sh; script/test_env.sh; cargo clean; cargo test" | ||
vagrant halt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
export DISPLAY=:99.0 | ||
Xvfb :99.0 & | ||
sleep 3 | ||
i3 -c /dev/null & | ||
sleep 3 | ||
gpick & | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Xvfb :99.0 & | ||
sleep 3 |