diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 561a967fc..18cd1c492 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -33,6 +33,28 @@ jobs: - name: Integration tests with Sqlite run: ./vendor/bin/phpunit -c tests/integration.sqlite.xml + Sqlite-PHP8: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Validate composer.json and composer.lock + run: composer validate + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + - name: Install Apache PHP module + run: sudo apt install -y libapache2-mod-php + - name: Start Apache + run: sudo systemctl start apache2 + - name: Setup document root + run: | + sudo rm -rf /var/www/html + sudo cp -R $GITHUB_WORKSPACE /var/www/html + sudo cp tests/configs/config.sqlite.php /var/www/html/config.php + sudo chown -R www-data:www-data /var/www/html/data + ls -l /var/www/html/ + - name: Integration tests with Sqlite + run: ./vendor/bin/phpunit -c tests/integration.sqlite.xml + Postgres: runs-on: ubuntu-latest container: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a2a735f5f..d3c8f3a57 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -24,6 +24,17 @@ jobs: - name: Unit tests with Sqlite run: ./vendor/bin/phpunit -c tests/units.sqlite.xml + Sqlite-PHP8: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Validate composer.json and composer.lock + run: composer validate + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + - name: Unit tests with Sqlite + run: ./vendor/bin/phpunit -c tests/units.sqlite.xml + Postgres: runs-on: ubuntu-latest container: