chore(deps): update node.js to v22 #2477
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP NW Run | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: "8.2.4" | |
extensions: mbstring, intl, pgsql, xml | |
ini-values: post_max_size=256M, max_execution_time=180 | |
coverage: xdebug | |
tools: php-cs-fixer, phpunit | |
- name: Setup problem matchers for PHP | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Validate composer.json and composer.lock | |
run: ./composer.phar validate | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install dependencies and create autoload | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: | | |
chmod ug+x ./configure | |
./configure | |
make create-structure | |
make preconfig | |
make link-vendor | |
make build | |
# ./composer.phar install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader | |
- name: Run unit test suite | |
run: | | |
ln -sf ./resources.build.php ./deploy/resources.php | |
./composer.phar run-script unit-test | |
- name: Run test-check suite | |
run: | | |
ln -sf ./resources.build.php ./deploy/resources.php | |
./composer.phar run-script test-checkbase | |
# make db-init-all | |
#./composer.phar run-script test-cron |