@@ -53,90 +53,20 @@ jobs:
53
53
uses : ./.github/actions/install-linux
54
54
- name : Setup
55
55
uses : ./.github/actions/setup-x64
56
- - name : Test
57
- uses : ./.github/actions/test-linux
58
- with :
59
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
60
- - name : Test Tracing JIT
61
- uses : ./.github/actions/test-linux
62
- with :
63
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
64
- runTestsParameters : >-
65
- -d zend_extension=opcache.so
66
- -d opcache.enable_cli=1
67
- -d opcache.jit_buffer_size=16M
68
- - name : Verify generated files are up to date
69
- uses : ./.github/actions/verify-generated-files
70
- LINUX_X32 :
71
- name : LINUX_X32_DEBUG_ZTS
72
- runs-on : ubuntu-latest
73
- container :
74
- image : ubuntu:20.04
75
- env :
76
- MYSQL_TEST_HOST : mysql
77
- PDO_MYSQL_TEST_DSN : mysql:host=mysql;dbname=test
78
- PDO_MYSQL_TEST_HOST : mysql
79
- services :
80
- mysql :
81
- image : mysql:8
82
- ports :
83
- - 3306:3306
84
- env :
85
- MYSQL_DATABASE : test
86
- MYSQL_ROOT_PASSWORD : root
87
- steps :
88
- - name : git checkout
89
- uses : actions/checkout@v3
90
- - name : apt
91
- uses : ./.github/actions/apt-x32
92
- - name : ./configure
93
- uses : ./.github/actions/configure-x32
94
- with :
95
- configurationParameters : >-
96
- --enable-debug
97
- --enable-zts
98
- - name : make
99
- run : make -j$(/usr/bin/nproc) >/dev/null
100
- - name : make install
101
- uses : ./.github/actions/install-linux-x32
102
- - name : Test
103
- uses : ./.github/actions/test-linux
104
- - name : Test Tracing JIT
105
- uses : ./.github/actions/test-linux
106
- with :
107
- runTestsParameters : >-
108
- -d zend_extension=opcache.so
109
- -d opcache.enable_cli=1
110
- -d opcache.jit_buffer_size=16M
111
- MACOS_DEBUG_NTS :
112
- runs-on : macos-11
113
- steps :
114
- - name : git checkout
115
- uses : actions/checkout@v3
116
- - name : brew
117
- uses : ./.github/actions/brew
118
- - name : ./configure
119
- uses : ./.github/actions/configure-macos
120
- with :
121
- configurationParameters : --enable-debug --disable-zts
122
- - name : make
123
- run : |-
124
- export PATH="/usr/local/opt/bison/bin:$PATH"
125
- make -j$(sysctl -n hw.logicalcpu) >/dev/null
126
- - name : make install
127
- run : sudo make install
128
- - name : Test
129
- uses : ./.github/actions/test-macos
130
- with :
131
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
132
- - name : Test Tracing JIT
133
- uses : ./.github/actions/test-macos
134
- with :
135
- testArtifacts : ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }} Tracing JIT
136
- runTestsParameters : >-
137
- -d zend_extension=opcache.so
138
- -d opcache.enable_cli=1
139
- -d opcache.protect_memory=1
140
- -d opcache.jit_buffer_size=16M
141
- - name : Verify generated files are up to date
142
- uses : ./.github/actions/verify-generated-files
56
+ - name : Test Drupal
57
+ run : |
58
+ git clone https://git.drupalcode.org/project/drupal.git drupal --branch=10.1.x --depth=1
59
+ cd drupal
60
+ git rev-parse HEAD
61
+ php /usr/bin/composer install --no-progress --ignore-platform-reqs
62
+ export SIMPLETEST_DB='sqlite://./tests.db'
63
+ export SIMPLETEST_BASE_URL='http://localhost'
64
+ export ASAN_OPTIONS=exitcode=139
65
+ vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite=unit || EXIT_CODE=$?
66
+ if [ $EXIT_CODE -gt 128 ]; then
67
+ exit 1
68
+ fi
69
+ vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite=build || EXIT_CODE=$?
70
+ if [ $EXIT_CODE -gt 128 ]; then
71
+ exit 1
72
+ fi
0 commit comments