Skip to content

Commit b40f7df

Browse files
committed
chore: windows
1 parent 3c2444f commit b40f7df

File tree

1 file changed

+39
-16
lines changed

1 file changed

+39
-16
lines changed

.github/workflows/ui-tests.yml

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
build:
1515
name: Build sample game for AltTester 🛠️
16-
runs-on: macos-15
16+
runs-on: windows-2022
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:
@@ -33,29 +33,20 @@ jobs:
3333
ALTSERVER_HOST: 54.66.58.33
3434
ALTSERVER_PORT: 13000
3535
with:
36-
targetPlatform: StandaloneOSX
36+
targetPlatform: StandaloneWindows64
3737
projectPath: sample
38-
buildMethod: MacBuilder.BuildForAltTester
38+
buildMethod: WindowsBuilder.BuildForAltTester
3939
customParameters: -logFile logFile.log -quit -batchmode
4040
- name: Upload artifact
4141
uses: actions/upload-artifact@v4
4242
if: always()
4343
with:
44-
name: Build-StandaloneOSX
45-
path: sample/Builds/MacOS
46-
test:
47-
name: Run UI tests on AltTester 🧪
48-
runs-on: macos-latest
49-
needs: build
50-
steps:
51-
- uses: actions/checkout@v3
52-
with:
53-
lfs: true
54-
- uses: actions/download-artifact@v4
55-
with:
56-
name: Build-StandaloneOSX
44+
name: Build-StandaloneWindows64
45+
path: sample/**
5746
- name: Open application
5847
run: |
48+
pwd
49+
ls -la
5950
export RUN_IN_BROWSERSTACK="false"
6051
export ALTSERVER_HOST="54.66.58.33"
6152
export ALTSERVER_PORT=13000
@@ -68,7 +59,39 @@ jobs:
6859
run: pip install -r "sample/Tests/requirements.txt"
6960
- name: Run UI tests
7061
run: |
62+
pwd
63+
ls -la
7164
export ALTSERVER_HOST="54.66.58.33"
7265
export ALTSERVER_PORT=13000
7366
pytest -s -v sample/Tests/test.py
67+
# test:
68+
# name: Run UI tests on AltTester 🧪
69+
# runs-on: macos-latest
70+
# needs: build
71+
# steps:
72+
# - uses: actions/checkout@v3
73+
# with:
74+
# lfs: true
75+
# - uses: actions/download-artifact@v4
76+
# with:
77+
# name: Build-StandaloneWindows64
78+
# - name: Open application
79+
# run: |
80+
# pwd
81+
# ls -la
82+
# export RUN_IN_BROWSERSTACK="false"
83+
# export ALTSERVER_HOST="54.66.58.33"
84+
# export ALTSERVER_PORT=13000
85+
# chmod -R 755 SampleApp.app
86+
# open SampleApp.app
87+
# - uses: actions/setup-python@v4
88+
# with:
89+
# python-version: "3.10"
90+
# - name: Install dependencies
91+
# run: pip install -r "sample/Tests/requirements.txt"
92+
# - name: Run UI tests
93+
# run: |
94+
# export ALTSERVER_HOST="54.66.58.33"
95+
# export ALTSERVER_PORT=13000
96+
# pytest -s -v sample/Tests/test.py
7497

0 commit comments

Comments
 (0)