forked from apache/netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
142 lines (106 loc) · 4 KB
/
php.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: PHP
on:
push:
pull_request:
jobs:
linux-php:
name: PHP on Linux
runs-on: ubuntu-18.04
env:
DISPLAY: ":99.0"
ANT_OPTS: -Dmetabuild.jsonurl=https://raw.githubusercontent.com/apache/netbeans-jenkins-lib/master/meta/netbeansrelease.json
OPTS: -Dcluster.config=php -Dtest-unit-sys-prop.ignore.random.failures=true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Caching dependencies
uses: actions/cache@v2
with:
path: ~/.hgexternalcache
key: ${{ runner.os }}-${{ hashFiles('*/external/binaries-list', '*/*/external/binaries-list') }}
restore-keys: ${{ runner.os }}-
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: '7.4'
tools: pecl
extensions: xdebug
ini-values: xdebug.mode=debug
- name: Launch Xvfb
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Clean
run: ant $OPTS clean
- name: Build
run: ant $OPTS build
- name: Test Hudson
run: ant $OPTS -f php/hudson.php test
- name: Test Neon
run: ant $OPTS -f php/languages.neon test
- name: Test API Annotation
run: ant $OPTS -f php/php.api.annotation test
- name: Test API Documentation
run: ant $OPTS -f php/php.api.documentation test
- name: Test API Executable
run: ant $OPTS -f php/php.api.executable test
- name: Test API Framework
run: ant $OPTS -f php/php.api.framework test
- name: Test API PHP Module
run: ant $OPTS -f php/php.api.phpmodule test
- name: Test API Testing
run: ant $OPTS -f php/php.api.testing test
- name: Test ApiGen
run: ant $OPTS -f php/php.apigen test
- name: Test Atoum
run: ant $OPTS -f php/php.atoum test
- name: Test Code Analysis
run: ant $OPTS -f php/php.code.analysis test
- name: Test Codeception
run: ant $OPTS -f php/php.codeception test
- name: Test Composer
run: ant $OPTS -f php/php.composer test
- name: Test PHP Debugger
run: ant $OPTS -f php/php.dbgp test
- name: Test Doctrine2
run: ant $OPTS -f php/php.doctrine2 test
- name: Test PHP Editor
run: ant $OPTS -f php/php.editor test
- name: Test Latte
run: ant $OPTS -f php/php.latte test
- name: Test Nette Tester
run: ant $OPTS -f php/php.nette.tester test
- name: Test PHPUnit
run: ant $OPTS -f php/php.phpunit test
- name: Test PHP Project
run: ant $OPTS -f php/php.project test
- name: Test Refactoring
run: ant $OPTS -f php/php.refactoring test
- name: Test Smarty
run: ant $OPTS -f php/php.smarty test
- name: Test Symfony
run: ant $OPTS -f php/php.symfony test
- name: Test Symfony 2
run: ant $OPTS -f php/php.symfony2 test
- name: Test Twig
run: ant $OPTS -f php/php.twig test
- name: Test Zend
run: ant $OPTS -f php/php.zend test
- name: Test Zend 2
run: ant $OPTS -f php/php.zend2 test
- name: Test Spellchecker Bindings
run: ant $OPTS -f php/spellchecker.bindings.php test