From 277297e3ba1583d6b5f2f67eb0581f805ea0acb8 Mon Sep 17 00:00:00 2001 From: Zachary Klosko Date: Fri, 18 Dec 2020 09:48:43 -0500 Subject: [PATCH] Adding back Bionic test --- .github/workflows/test-all-Ubuntu.yml | 62 +++++++++++++-------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/test-all-Ubuntu.yml b/.github/workflows/test-all-Ubuntu.yml index e125d0d91..b3c78c7b6 100644 --- a/.github/workflows/test-all-Ubuntu.yml +++ b/.github/workflows/test-all-Ubuntu.yml @@ -10,37 +10,37 @@ on: workflow_dispatch: jobs: - # test-bionic: - # runs-on: ubuntu-18.04 - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-python@v2 - # with: - # python-version: '3.6' - # - name: Setup PostgreSQL - # run: | - # sudo systemctl start postgresql.service - # pg_isready - # sudo -u postgres psql -c 'CREATE DATABASE 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 'ALTER USER libretime CREATEDB;' - # - name: Setup PHP with specific version - # uses: shivammathur/setup-php@v2 - # with: - # php-version: '7.2' - # - run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime - # - name: Install prerequisites - # run: sudo bash ./.github/scripts/install-bionic.sh - # - name: Run Python tests - # run: | - # sudo bash ./.github/scripts/python-pkg-install.sh - # sudo bash ./.github/scripts/python-pkg-test.sh - # - name: Run PHP tests - # run: | - # composer install --no-progress - # cd airtime_mvc/tests - # sudo bash ../../vendor/bin/phpunit + test-bionic: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.6' + - name: Setup PostgreSQL + run: | + sudo systemctl start postgresql.service + pg_isready + sudo -u postgres psql -c 'CREATE DATABASE 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 'ALTER USER libretime CREATEDB;' + - name: Setup PHP with specific version + uses: shivammathur/setup-php@v2 + with: + php-version: '7.2' + - run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime + - name: Install prerequisites + run: sudo bash ./.github/scripts/install-bionic.sh + - name: Run Python tests + run: | + sudo bash ./.github/scripts/python-pkg-install.sh + sudo bash ./.github/scripts/python-pkg-test.sh + - name: Run PHP tests + run: | + composer install --no-progress + cd airtime_mvc/tests + sudo bash ../../vendor/bin/phpunit test-xenial: runs-on: ubuntu-16.04 steps: