Skip to content

Commit f762cf2

Browse files
committed
update tests and consolidate github actions
1 parent fed9c61 commit f762cf2

File tree

7 files changed

+73
-222
lines changed

7 files changed

+73
-222
lines changed

.github/workflows/flash.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/haxelib.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/api.yml renamed to .github/workflows/main.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: API Reference
1+
name: CI
22

33
on:
44
push:
@@ -7,9 +7,24 @@ on:
77
- master
88

99
jobs:
10-
build:
10+
haxelib:
1111
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: krdlab/setup-haxe@v1
15+
with:
16+
haxe-version: 4.3.4
17+
- name: Package Haxelib
18+
working-directory: haxelib
19+
run: haxe haxelib.hxml
20+
- uses: actions/upload-artifact@v4
21+
with:
22+
name: feathersui-formatters-haxelib
23+
path: bin/haxelib/
24+
if-no-files-found: error
1225

26+
api:
27+
runs-on: ubuntu-latest
1328
steps:
1429
- uses: actions/checkout@v4
1530
- uses: krdlab/setup-haxe@v1
@@ -38,3 +53,18 @@ jobs:
3853
host: ${{ secrets.SSH_HOST }}
3954
username: ${{ secrets.SSH_USER }}
4055
password: ${{ secrets.SSH_PASS }}
56+
57+
flash:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: krdlab/setup-haxe@v1
62+
with:
63+
haxe-version: 4.0.5
64+
- name: Set up Haxelib dependencies
65+
run: |
66+
haxelib install lime 7.8.0 --quiet
67+
haxelib install openfl 8.9.7 --quiet
68+
haxelib dev feathersui-formatters ${{ github.workspace }}
69+
- name: Build Flash .swc library
70+
run: haxelib run openfl build flash -debug

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: krdlab/setup-haxe@v1
3737
with:
3838
haxe-version: ${{ matrix.haxe-version }}
39-
- uses: actions/setup-node@v3
39+
- uses: actions/setup-node@v4
4040
with:
4141
node-version: "16"
4242
- name: Set up Haxelib dependencies

test/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ openfl test html5
6161
Alternatively, you can run HTML/JS tests with Playwright, in all three of: Chromium, Firefox, and Webkit.
6262

6363
```sh
64-
npm test
64+
haxelib run openfl build html5 -final -Dplaywright
65+
node playwright-runner.js
6566
```

0 commit comments

Comments
 (0)