Skip to content

Commit 025aea5

Browse files
committed
actions: run tests for openfl develop too
1 parent 819537c commit 025aea5

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010

11-
- uses: krdlab/setup-haxe@v1
11+
- uses: krdlab/setup-haxe@8f35d1215b93e940a76f9470e22e8a5ba6149598
1212
with:
1313
haxe-version: 4.2.5
1414

@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ubuntu-latest
4747
steps:
4848

49-
- uses: krdlab/setup-haxe@v1
49+
- uses: krdlab/setup-haxe@8f35d1215b93e940a76f9470e22e8a5ba6149598
5050
with:
5151
haxe-version: ${{ matrix.haxe-version }}
5252

@@ -121,9 +121,6 @@ jobs:
121121
haxelib install utest --quiet
122122
haxelib dev swf ${{ github.workspace }}
123123
124-
- name: Setup environment
125-
run: |
126-
127124
- name: Run tests on Neko
128125
working-directory: tests
129126
run: |
@@ -155,9 +152,6 @@ jobs:
155152
haxelib install utest --quiet
156153
haxelib dev swf ${{ github.workspace }}
157154
158-
- name: Setup environment
159-
run: |
160-
161155
- name: Run tests on HashLink
162156
working-directory: tests
163157
run: |
@@ -171,7 +165,7 @@ jobs:
171165
steps:
172166
- uses: actions/checkout@v4
173167

174-
- uses: krdlab/setup-haxe@v1
168+
- uses: krdlab/setup-haxe@8f35d1215b93e940a76f9470e22e8a5ba6149598
175169
with:
176170
haxe-version: ${{ matrix.haxe-version }}
177171

@@ -198,18 +192,24 @@ jobs:
198192
run: |
199193
haxelib run openfl test air
200194
201-
samples-openfl-develop:
195+
samples-and-unit-test-openfl-develop:
202196
needs: package-haxelib
203197
strategy:
204198
matrix:
205199
haxe-version: [3.4.7, 4.0.5, 4.1.5, 4.2.5, 4.3.6]
206-
runs-on: ubuntu-latest
200+
# AL init fails on both windows and ubuntu
201+
runs-on: macos-latest
207202
steps:
208203

209-
- uses: krdlab/setup-haxe@v1
204+
- uses: krdlab/setup-haxe@8f35d1215b93e940a76f9470e22e8a5ba6149598
210205
with:
211206
haxe-version: ${{ matrix.haxe-version }}
212207

208+
- uses: joshtynjala/setup-adobe-air-action@v2
209+
with:
210+
air-version: "33.1"
211+
accept-license: true
212+
213213
- name: Set HAXEPATH
214214
run: |
215215
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
@@ -221,9 +221,11 @@ jobs:
221221

222222
- name: Install Haxe dependencies
223223
run: |
224+
haxelib install format --quiet
224225
haxelib install lime --quiet
225226
haxelib git openfl https://github.com/openfl/openfl --quiet
226227
haxelib install layout --quiet
228+
haxelib install utest --quiet
227229
haxelib run openfl setup -alias -y
228230
haxelib git openfl-samples https://github.com/openfl/openfl-samples --quiet
229231
haxelib dev swf swf-haxelib
@@ -253,3 +255,19 @@ jobs:
253255
run: |
254256
lime build NyanCat hl -release -verbose -nocolor
255257
lime build SimpleSWFLayout hl -release -verbose -nocolor
258+
259+
- name: Run tests on Neko
260+
working-directory: tests
261+
run: |
262+
haxelib run openfl test neko
263+
264+
- name: Run tests on HashLink
265+
if: ${{ matrix.haxe-version != '3.4.7' }}
266+
working-directory: tests
267+
run: |
268+
haxelib run openfl test hl
269+
270+
- name: Run tests on Adobe AIR
271+
working-directory: tests
272+
run: |
273+
haxelib run openfl test air

0 commit comments

Comments
 (0)