Skip to content

chore(1.x): release 1.6.3 (#79) #236

chore(1.x): release 1.6.3 (#79)

chore(1.x): release 1.6.3 (#79) #236

Workflow file for this run

---
name: πŸ§ͺ Unit testing
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- 1.x
push:
branches:
- 1.x
jobs:
code-coverage:
timeout-minutes: 4
runs-on: ${{ matrix.os }}
concurrency:
cancel-in-progress: true
group: code-coverage-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
php-version:
- '8.2'
dependencies:
- locked
steps:
- name: πŸ“¦ Check out the codebase
uses: actions/checkout@v5
- name: πŸ› οΈ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-values: error_reporting=E_ALL
coverage: xdebug
- name: πŸ› οΈ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: πŸ€– Validate composer.json and composer.lock
run: composer validate --ansi --strict
- name: πŸ“₯ Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
- name: πŸ§ͺ Collect code coverage with Xdebug and PhpUnit
run: composer test:cc
- name: πŸ“€ Upload code coverage report to Codecov
uses: codecov/codecov-action@v4
with:
files: runtime/phpunit/logs/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
testing:
timeout-minutes: 4
runs-on: ${{ matrix.os }}
concurrency:
cancel-in-progress: true
group: testing-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
php-version:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
dependencies:
- lowest
- locked
- highest
steps:
- name: πŸ“¦ Check out the codebase
uses: actions/checkout@v5
- name: πŸ› οΈ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-values: error_reporting=E_ALL
- name: πŸ› οΈ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: πŸ€– Validate composer.json and composer.lock
run: composer validate --ansi --strict
- name: πŸ“₯ Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
- name: πŸ§ͺ Run tests
run: composer test
compile-phar:
timeout-minutes: 4
runs-on: ${{ matrix.os }}
concurrency:
cancel-in-progress: true
group: compile-phar-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.php-version }}-${{ matrix.dependencies }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
php-version:
- '8.2'
dependencies:
- locked
env:
DLOAD_PHAR: ".build/phar/dload.phar"
DLOAD_PHAR_SIGNATURE: ".build/phar/dload.phar.asc"
steps:
- name: πŸ“¦ Check out the codebase
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: πŸ› οΈ Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-values: 'error_reporting=E_ALL, memory_limit=-1, phar.readonly=0'
tools: composer, box
coverage: none
- name: πŸ› οΈ Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: πŸ“₯ Install dependencies with composer
uses: ramsey/composer-install@v3
with:
composer-options: "--no-dev"
dependency-versions: ${{ matrix.dependencies }}
- name: πŸ” Validate configuration for box-project/box
run: box validate box.json.dist --ansi
- name: πŸ“¦ Build PHAR
run: box compile
- name: πŸ’₯ Show info about dload.phar with box-project/box
run: box info ${{ env.DLOAD_PHAR }} --ansi
- name: πŸ€” Run dload.phar help command
run: ${{ env.DLOAD_PHAR }} --help