-
-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (41 loc) · 1.03 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: test
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
haxe:
- latest
- 4.3.4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install haxe ${{ matrix.haxe }}
uses: krdlab/[email protected]
with:
haxe-version: ${{ matrix.haxe }}
- name: Setup
run: |
haxe --version
haxelib dev electron .
haxelib install hxnodejs
- name: Build electron api
run: haxe api.hxml
- name: Build haxedoc.xml
run: haxe haxedoc.hxml
- name: Install demo application dependencies
run: cd demo && npm install
- name: Build demo application
run: |
haxe --cwd demo main.hxml
haxe --cwd demo app.hxml
- name: Setup virtual display
run: sudo apt install -y xvfb
- name: Run demo application
run: |
cd demo && xvfb-run npm start -- --timeout=5
exit $?