Adding PHP setup Github Action
This commit is contained in:
parent
6b55206eff
commit
3877aead8c
|
@ -22,15 +22,7 @@ apt-get install -y gstreamer1.0-plugins-base \
|
||||||
python3-gi-cairo \
|
python3-gi-cairo \
|
||||||
python-cairo \
|
python-cairo \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libcairo2-dev \
|
libcairo2-dev
|
||||||
php7.2 \
|
|
||||||
php7.2-curl \
|
|
||||||
php7.2-gd \
|
|
||||||
php7.2-pgsql \
|
|
||||||
php7.2-apcu \
|
|
||||||
php7.2-bcmath \
|
|
||||||
php7.2-mbstring \
|
|
||||||
php7.2-pear
|
|
||||||
|
|
||||||
# Making directory; not sure why...
|
# Making directory; not sure why...
|
||||||
mkdir -p /tmp/log/libretime
|
mkdir -p /tmp/log/libretime
|
|
@ -25,6 +25,10 @@ jobs:
|
||||||
sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
|
sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
|
||||||
sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
|
sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
|
||||||
sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;'
|
sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;'
|
||||||
|
- name: Setup PHP with specific version
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '7.0'
|
||||||
- run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
- run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: sudo bash ./.github/scripts/install-bionic.sh
|
run: sudo bash ./.github/scripts/install-bionic.sh
|
||||||
|
|
Loading…
Reference in New Issue