From 3877aead8c94625509130259b99edc27f7b77ffc Mon Sep 17 00:00:00 2001 From: Zachary Klosko Date: Wed, 16 Dec 2020 15:04:14 -0500 Subject: [PATCH] Adding PHP setup Github Action --- .github/scripts/install-bionic.sh | 10 +--------- .github/workflows/test-all-Ubuntu.yml | 4 ++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/scripts/install-bionic.sh b/.github/scripts/install-bionic.sh index 11b9f37c0..ef7416abe 100644 --- a/.github/scripts/install-bionic.sh +++ b/.github/scripts/install-bionic.sh @@ -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 \ No newline at end of file diff --git a/.github/workflows/test-all-Ubuntu.yml b/.github/workflows/test-all-Ubuntu.yml index 9d2084a22..e4d53eebe 100644 --- a/.github/workflows/test-all-Ubuntu.yml +++ b/.github/workflows/test-all-Ubuntu.yml @@ -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