Skip to content

Commit 7e367f1

Browse files
author
Quan Zhao
committed
[workflow] Support mysql redis memcached
1 parent 19129cb commit 7e367f1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ngx_php.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: prepare basic packages
16-
run: sudo apt-get install -yqq locales language-pack-de re2c libgmp-dev libicu-dev libmcrypt-dev libtidy-dev libenchant-dev libaspell-dev libpspell-dev librecode-dev libsasl2-dev libxpm-dev cpanminus openssl libssl-dev libbz2-dev libzip-dev systemtap-sdt-dev libonig-dev axel libcurl3-dev
16+
run: |
17+
sudo apt-get install -yqq locales language-pack-de re2c libgmp-dev libicu-dev libmcrypt-dev libtidy-dev libenchant-dev libaspell-dev libpspell-dev librecode-dev libsasl2-dev libxpm-dev cpanminus openssl libssl-dev libbz2-dev libzip-dev systemtap-sdt-dev libonig-dev axel libcurl3-dev
18+
sudo apt-get install -y mysql-server mysql-client redis-server redis-tools memcached
1719
- name: perl packages
1820
run: sudo cpanm -n Test::Nginx
1921
- name: compiler
2022
env:
2123
PHP_SRC_VERSION: '8.0.0'
2224
NGINX_SRC_VERSION: '1.12.2'
23-
run: ./.travis/compiler.sh
25+
run: |
26+
mysql -uroot -e 'create database ngx_php; grant all on ngx_php.* to "ngx_php"@"%" identified by "ngx_php"; flush privileges;'
27+
if [ ! -d data-cache ]; then mkdir data-cache; fi
28+
if [ ! -f data-cache/world.sql.gz ]; then wget -O data-cache/world.sql.gz http://downloads.mysql.com/docs/world.sql.gz; fi
29+
zcat data-cache/world.sql.gz | mysql -uroot
30+
mysql -uroot -e 'grant all on world.* to "ngx_php"@"%"; flush privileges;'
31+
./.travis/compiler.sh
2432
- name: test
2533
run: ./.travis/test.sh

0 commit comments

Comments
 (0)