Skip to content

Commit 1a42e3c

Browse files
committed
fix html5 tests and consolidate actions
1 parent 6eb7924 commit 1a42e3c

File tree

9 files changed

+177
-327
lines changed

9 files changed

+177
-327
lines changed

.github/workflows/api.yml

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

.github/workflows/flash.yml

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

.github/workflows/haxelib.yml

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

.github/workflows/main.yml

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
haxelib:
11+
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-cairngorm-haxelib
23+
path: bin/haxelib/
24+
if-no-files-found: error
25+
26+
api:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: krdlab/setup-haxe@v1
31+
with:
32+
haxe-version: 4.1.5
33+
- name: Set up Haxelib dependencies
34+
run: |
35+
haxelib install lime --quiet
36+
haxelib install openfl --quiet
37+
haxelib install feathersui --quiet
38+
haxelib install feathersui-rpc-services --quiet
39+
haxelib install dox --quiet
40+
haxelib dev feathersui-cairngorm ${{ github.workspace }}
41+
- name: Build API reference
42+
working-directory: docs
43+
run: haxe docs.hxml
44+
- uses: actions/upload-artifact@v4
45+
with:
46+
name: feathersui-cairngorm-docs
47+
path: bin/api/
48+
if-no-files-found: error
49+
- name: Deploy to unstable
50+
if: ${{ github.event_name != 'pull_request' }}
51+
uses: garygrossgarten/github-action-scp@release
52+
with:
53+
local: bin/api
54+
remote: api.feathersui.com/feathersui-cairngorm/unstable
55+
host: ${{ secrets.SSH_HOST }}
56+
username: ${{ secrets.SSH_USER }}
57+
password: ${{ secrets.SSH_PASS }}
58+
59+
flash:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: krdlab/setup-haxe@v1
64+
with:
65+
haxe-version: 4.1.5
66+
- name: Set up Haxelib dependencies
67+
run: |
68+
haxelib install lime --quiet
69+
haxelib install openfl --quiet
70+
haxelib install feathersui --quiet
71+
haxelib install feathersui-rpc-services --quiet
72+
haxelib dev feathersui-cairngorm ${{ github.workspace }}
73+
- name: Build Flash .swc library
74+
run: haxelib run openfl build flash -debug
75+
76+
samples-misc:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v4
80+
- uses: krdlab/setup-haxe@v1
81+
with:
82+
haxe-version: 4.1.5
83+
- name: Set up Haxelib dependencies
84+
run: |
85+
haxelib install lime --quiet
86+
haxelib install openfl --quiet
87+
haxelib install feathersui --quiet
88+
haxelib install feathersui-rpc-services --quiet
89+
haxelib dev feathersui-cairngorm ${{ github.workspace }}
90+
- name: Build samples/cafe-townsend
91+
working-directory: samples/cafe-townsend
92+
run: |
93+
haxelib run openfl build neko
94+
haxelib run openfl build html5
95+
haxelib run openfl build flash
96+
haxelib run openfl build hl
97+
- name: Build samples/todomvc
98+
working-directory: samples/todomvc
99+
run: |
100+
haxelib run openfl build neko
101+
haxelib run openfl build html5
102+
haxelib run openfl build flash
103+
haxelib run openfl build hl
104+
105+
samples-air:
106+
runs-on: windows-latest
107+
steps:
108+
- uses: actions/checkout@v4
109+
- uses: joshtynjala/setup-adobe-air-action@v2
110+
with:
111+
air-version: "33.1"
112+
accept-license: true
113+
- uses: krdlab/setup-haxe@v1
114+
with:
115+
haxe-version: 4.1.5
116+
- name: Set up Haxelib dependencies
117+
run: |
118+
haxelib install lime --quiet
119+
haxelib install openfl --quiet
120+
haxelib install feathersui --quiet
121+
haxelib install feathersui-rpc-services --quiet
122+
haxelib dev feathersui-cairngorm ${{ github.workspace }}
123+
haxelib run lime config AIR_SDK ${{ env.AIR_HOME }}
124+
- name: Build samples/cafe-townsend
125+
working-directory: samples/cafe-townsend
126+
run: |
127+
haxelib run openfl build air
128+
- name: Build samples/todomvc
129+
working-directory: samples/todomvc
130+
run: |
131+
haxelib run openfl build air

.github/workflows/samples.yml

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

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: krdlab/setup-haxe@v1
1818
with:
1919
haxe-version: ${{ matrix.haxe-version }}
20-
- uses: actions/setup-node@v3
20+
- uses: actions/setup-node@v4
2121
with:
2222
node-version: "16"
2323
- name: Set up Haxelib dependencies

test/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ To run tests with HTML/JS, run the following command:
5757
```sh
5858
openfl test html5
5959
```
60+
61+
Alternatively, you can run HTML/JS tests with Playwright, in all three of: Chromium, Firefox, and Webkit.
62+
63+
```sh
64+
haxelib run openfl build html5 -final -Dplaywright
65+
node playwright-runner.js
66+
```

0 commit comments

Comments
 (0)