From 72b8724965bf7c6f796ae5e061538fb2ce7ac2eb Mon Sep 17 00:00:00 2001 From: indigoxela Date: Wed, 11 Mar 2026 09:28:03 +0100 Subject: [PATCH] Issue #58: Get GitHub Actions workflow running again --- .github/misc/Github.php | 83 -------------------------- .github/misc/default.conf | 13 ---- .github/misc/settings.local.php | 8 --- .github/workflows/functional-tests.yml | 63 ++----------------- 4 files changed, 6 insertions(+), 161 deletions(-) delete mode 100644 .github/misc/Github.php delete mode 100644 .github/misc/default.conf delete mode 100644 .github/misc/settings.local.php diff --git a/.github/misc/Github.php b/.github/misc/Github.php deleted file mode 100644 index e922c81..0000000 --- a/.github/misc/Github.php +++ /dev/null @@ -1,83 +0,0 @@ - $lineErrors) { - foreach ($lineErrors as $column => $colErrors) { - foreach ($colErrors as $error) { - $type = strtolower($error['type']); - $file = $report['filename']; - $message = $error['message']; - echo "::$type file=$file,line=$line,col=$column::$message" . PHP_EOL; - } - } - } - - return true; - - }//end generateFileReport() - - - /** - * Generates a GitHub Actions report. - * - * @param string $cachedData Any partial report data that was returned from - * generateFileReport during the run. - * @param int $totalFiles Total number of files processed during the run. - * @param int $totalErrors Total number of errors found during the run. - * @param int $totalWarnings Total number of warnings found during the run. - * @param int $totalFixable Total number of problems that can be fixed. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. - * @param bool $interactive Are we running in interactive mode? - * @param bool $toScreen Is the report being printed to screen? - * - * @return void - */ - public function generate( - $cachedData, - $totalFiles, - $totalErrors, - $totalWarnings, - $totalFixable, - $showSources=false, - $width=80, - $interactive=false, - $toScreen=true - ) { - echo $cachedData; - - }//end generate() - - -}//end class diff --git a/.github/misc/default.conf b/.github/misc/default.conf deleted file mode 100644 index 8aa0b69..0000000 --- a/.github/misc/default.conf +++ /dev/null @@ -1,13 +0,0 @@ - - # Variables in this file will be substituted in step "Setup Apache". - DocumentRoot _PWD - - - AllowOverride All - Require all granted - - - - SetHandler "proxy:unix:/run/php/php_PHP_V-fpm.sock|fcgi://localhost" - - diff --git a/.github/misc/settings.local.php b/.github/misc/settings.local.php deleted file mode 100644 index b02216f..0000000 --- a/.github/misc/settings.local.php +++ /dev/null @@ -1,8 +0,0 @@ -> $GITHUB_ENV - echo 'USE_PHP_V=8.2' >> $GITHUB_ENV - - - name: Install MariaDB - uses: shogo82148/actions-setup-mysql@v1 - with: - mysql-version: 'mariadb-10.5' - root-password: 'root' - auto-start: true - - - name: Verify setup and create database - run: | - echo -e '[client]\nuser = root\npassword = root\nhost = 127.0.0.1' > ~/.my.cnf - mysql -e 'SELECT version()\G' - mysql -e 'CREATE DATABASE backdrop;' - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ env.USE_PHP_V }} - coverage: none - tools: none - - - name: Checkout Backdrop core - uses: actions/checkout@v4 - with: - repository: backdrop/backdrop - - - name: Checkout module - uses: actions/checkout@v4 - with: - path: modules/${{ env.REPO_NAME }} - - - name: Setup Apache - run: | - sudo cp -f modules/${{ env.REPO_NAME }}/.github/misc/default.conf /etc/apache2/sites-available/000-default.conf - sudo sed -i -e "s?_PWD?$PWD?g" -e "s/_PHP_V/${{ env.USE_PHP_V }}/g" /etc/apache2/sites-available/000-default.conf - sudo apt-get install libapache2-mod-fcgid - sudo a2enmod rewrite proxy fcgid proxy_fcgi - sudo systemctl start apache2.service - sudo sed -i -e 's/user = www-data/user = runner/' /etc/php/${{ env.USE_PHP_V }}/fpm/pool.d/www.conf - sudo sed -i -e 's/listen.owner = www-data/listen.owner = runner/' /etc/php/${{ env.USE_PHP_V }}/fpm/pool.d/www.conf - sudo systemctl restart php${{ env.USE_PHP_V }}-fpm.service - - - name: Install Backdrop - run: | - cp modules/${{ env.REPO_NAME }}/.github/misc/settings.local.php . - core/scripts/install.sh --db-url=mysql://root:root@127.0.0.1/backdrop - - - name: Run functional tests - run: core/scripts/run-tests.sh --force --directory=modules/${{ env.REPO_NAME }} --verbose --color --concurrency=3 --cache 2>&1 + - name: Run Tests + uses: indigoxela/gha_composite/actions/simpletest@v1