Skip to content

Commit

Permalink
actions: run tests for Neko and Haxe 3.4.7 using hxp
Browse files Browse the repository at this point in the history
For some reason, there's an error with Thread.current()
  • Loading branch information
joshtynjala committed May 9, 2023
1 parent 609ea90 commit bb72ead
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,42 @@ on: [push, pull_request]

jobs:

unit-test-neko-haxe3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: krdlab/setup-haxe@v1
with:
haxe-version: 3.4.7

- name: Set HAXEPATH
run: |
echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib install hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --quiet
haxelib install lime --quiet
haxelib install utest --quiet
- name: Setup environment
run: |
haxelib dev openfl $GITHUB_WORKSPACE
- name: Install command aliases
run: |
haxelib run lime setup -alias -y
haxelib run openfl setup -alias -y
- name: Run tests on Neko
run: |
haxelib run hxp test -Dtarget=neko --install-hxp-alias
unit-test-neko:
strategy:
matrix:
Expand Down Expand Up @@ -39,7 +75,6 @@ jobs:
haxelib run openfl setup -alias -y
- name: Run tests on Neko
if: ${{ matrix.haxe-version != '3.4.7' }}
run: |
haxelib run hxp test -Dtarget=neko -Duse-lime-tools --install-hxp-alias
Expand Down Expand Up @@ -79,14 +114,13 @@ jobs:
haxelib run openfl setup -alias -y
- name: Run tests on HashLink
if: ${{ matrix.haxe-version != '3.4.7' }}
run: |
haxelib run hxp test -Dtarget=hl -Duse-lime-tools --install-hxp-alias
unit-test-air:
strategy:
matrix:
haxe-version: [4.0.5, 4.1.5, 4.2.5, 4.3.1]
haxe-version: [3.4.7, 4.0.5, 4.1.5, 4.2.5, 4.3.1]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -398,7 +432,7 @@ jobs:
notify:
runs-on: ubuntu-latest
needs: [package-haxelib, docs, unit-test-neko, unit-test-hashlink, unit-test-air, html5-samples, flash-samples, neko-samples, hashlink-samples]
needs: [package-haxelib, docs, unit-test-neko-haxe3, unit-test-neko, unit-test-hashlink, unit-test-air, html5-samples, flash-samples, neko-samples, hashlink-samples]
if: ${{ github.repository == 'openfl/openfl' && github.event_name != 'pull_request' }}
steps:
- name: Notify Discord
Expand Down

0 comments on commit bb72ead

Please sign in to comment.