Skip to content

Experiment with testing installations and updates #8037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,27 @@ jobs:
run: busted --lua=/home/runner/work/PathOfBuilding/PathOfBuilding/.lua/bin/luajit
- name: Report coverage
run: cd src; luacov-coveralls --repo-token=${{ secrets.github_token }} -e TestData -e Data -e runtime

install_tests:
runs-on: windows-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download installer
run: gh release download --pattern '*.exe' --repo PathOfBuildingCommunity/PathOfBuilding
- name: Run installer
run: .\PathOfBuildingCommunity-Setup.exe /S /NCRC
- name: Run Path of Building
run: |
cd $ENV:APPDATA
Start-Process -FilePath "Path of Building Community\Path of Building.exe"
- name: Verify first run
run: return !(Test-Path "Path of Building Community\first.run")
- name: Download Sikuli
run: Invoke-WebRequest https://launchpad.net/sikuli/sikulix/2.0.5/+download/sikulixapi-2.0.5.jar -OutFile sikulixapi-2.0.5.jar
- name: Run test
run: |
dir
java -jar sikulixapi-2.0.5.jar -r spec\checkUpdate
Binary file added spec/checkUpdate.sikuli/1722309358306.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added spec/checkUpdate.sikuli/1722309855700.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions spec/checkUpdate.sikuli/checkUpdate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
click("1722309358306.png")
wait("1722309855700.png", 20)
Loading