Adding PHP setup Github Action

This commit is contained in:
Zachary Klosko 2020-12-16 15:04:14 -05:00
parent 6b55206eff
commit 3877aead8c
2 changed files with 5 additions and 9 deletions

View File

@ -22,15 +22,7 @@ apt-get install -y gstreamer1.0-plugins-base \
python3-gi-cairo \
python-cairo \
pkg-config \
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
libcairo2-dev
# Making directory; not sure why...
mkdir -p /tmp/log/libretime

View File

@ -25,6 +25,10 @@ jobs:
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 '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
- name: Install prerequisites
run: sudo bash ./.github/scripts/install-bionic.sh