diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 26955f2c..5177f5a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,22 +22,11 @@ jobs: coverage: pcov extension-csv: mbstring - - name: Check versions - run: php -v && composer -V - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install system dependencies - run: sudo apt-get install -y postgresql-client - - - name: Install PHP dependencies - run: composer install --prefer-dist --no-progress --no-suggest - - - name: Pre-configure database + - name: Set up database run: | mkdir -p data/config if [[ "${{ matrix.database }}" == "pgsql" ]]; then + sudo apt-get install -y postgresql-client ; psql --version ; psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres ; psql -c "CREATE DATABASE shimmie;" -U postgres ; @@ -54,6 +43,15 @@ jobs: echo ' data/config/auto_install.conf.php ; fi + - name: Check versions + run: php -v && composer -V + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install PHP dependencies + run: composer install --prefer-dist --no-progress --no-suggest + - name: Install shimmie run: php index.php