-
Notifications
You must be signed in to change notification settings - Fork 1
105 lines (88 loc) · 3.16 KB
/
Copy pathtests.yml
File metadata and controls
105 lines (88 loc) · 3.16 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Tests
on:
pull_request:
branches: [main]
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: ffi
- name: Install Composer dependencies
run: composer install --no-interaction
- name: Install virtual display
run: sudo apt-get update && sudo apt-get install -y xvfb
- name: Run tests
run: |
Xvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99
sleep 1
php tests/index_test.php
php tests/widgets_test/AdditionalWidgetsTest.php
php tests/widgets_test/ButtonTest.php
php tests/widgets_test/CanvasTest.php
php tests/widgets_test/CheckbuttonTest.php
php tests/widgets_test/GeometryTest.php
php tests/widgets_test/InputTest.php
php tests/widgets_test/LabelTest.php
php tests/widgets_test/MenuTest.php
php tests/widgets_test/MenubuttonTest.php
php tests/widgets_test/MessageTest.php
php tests/widgets_test/TopLevelWidgetTest.php
php tests/widgets_test/WindowTest.php
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: ffi
- name: Install Composer dependencies
run: composer install --no-interaction
- name: Run tests
run: |
php tests/index_test.php
php tests/widgets_test/AdditionalWidgetsTest.php
php tests/widgets_test/ButtonTest.php
php tests/widgets_test/CanvasTest.php
php tests/widgets_test/CheckbuttonTest.php
php tests/widgets_test/GeometryTest.php
php tests/widgets_test/InputTest.php
php tests/widgets_test/LabelTest.php
php tests/widgets_test/MenuTest.php
php tests/widgets_test/MenubuttonTest.php
php tests/widgets_test/MessageTest.php
php tests/widgets_test/TopLevelWidgetTest.php
php tests/widgets_test/WindowTest.php
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: ffi
- name: Install Composer dependencies
run: composer install --no-interaction
- name: Run tests
run: |
php tests/index_test.php
php tests/widgets_test/AdditionalWidgetsTest.php
php tests/widgets_test/ButtonTest.php
php tests/widgets_test/CanvasTest.php
php tests/widgets_test/CheckbuttonTest.php
php tests/widgets_test/GeometryTest.php
php tests/widgets_test/InputTest.php
php tests/widgets_test/LabelTest.php
php tests/widgets_test/MenuTest.php
php tests/widgets_test/MenubuttonTest.php
php tests/widgets_test/MessageTest.php
php tests/widgets_test/TopLevelWidgetTest.php
php tests/widgets_test/WindowTest.php