[UPD] rel v4.3.0 — log_channel + runtime logger override #23
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| unit: | |
| if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| php-version: [ '8.2', '8.3', '8.4', '8.5' ] | |
| laravel-version: [ '11.*', '12.*', '13.*' ] | |
| exclude: | |
| - php-version: '8.2' | |
| laravel-version: '12.*' | |
| - php-version: '8.2' | |
| laravel-version: '13.*' | |
| - php-version: '8.3' | |
| laravel-version: '13.*' | |
| name: Unit — PHP ${{ matrix.php-version }} / Laravel ${{ matrix.laravel-version }} (${{ matrix.os }}) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup PHP ${{ matrix.php-version }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: openssl, sockets | |
| coverage: none | |
| - name: Install Composer dependencies | |
| run: | | |
| composer require "illuminate/support:${{ matrix.laravel-version }}" "illuminate/console:${{ matrix.laravel-version }}" "illuminate/contracts:${{ matrix.laravel-version }}" --no-interaction --no-update | |
| composer install --no-interaction --prefer-dist | |
| - name: Run unit tests | |
| run: vendor/bin/pest tests/Unit/ | |
| integration: | |
| if: ${{ !startsWith(github.event.head_commit.message, '[DOC]') }} | |
| runs-on: ubuntu-latest | |
| needs: unit | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: [ '8.2', '8.3', '8.4', '8.5' ] | |
| laravel-version: [ '11.*', '12.*', '13.*' ] | |
| exclude: | |
| - php-version: '8.2' | |
| laravel-version: '12.*' | |
| - php-version: '8.2' | |
| laravel-version: '13.*' | |
| - php-version: '8.3' | |
| laravel-version: '13.*' | |
| name: Integration — PHP ${{ matrix.php-version }} / Laravel ${{ matrix.laravel-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup PHP ${{ matrix.php-version }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: openssl, sockets, pcntl | |
| coverage: ${{ matrix.php-version == '8.5' && matrix.laravel-version == '13.*' && 'xdebug' || 'none' }} | |
| - name: Install Composer dependencies | |
| run: | | |
| composer require "illuminate/support:${{ matrix.laravel-version }}" "illuminate/console:${{ matrix.laravel-version }}" "illuminate/contracts:${{ matrix.laravel-version }}" --no-interaction --no-update | |
| composer install --no-interaction --prefer-dist | |
| - name: Start OPC UA test servers | |
| id: opcua | |
| uses: php-opcua/uanetstandard-test-suite@v1.1.0 | |
| - name: Run tests | |
| env: | |
| OPCUA_CERTS_DIR: ${{ steps.opcua.outputs.certs-dir }} | |
| run: vendor/bin/pest --log-junit=results/junit.xml ${{ matrix.php-version == '8.5' && matrix.laravel-version == '13.*' && '--coverage-clover=coverage/clover.xml' || '' }} | |
| - name: Upload coverage to Codecov | |
| if: matrix.php-version == '8.5' && matrix.laravel-version == '13.*' | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: coverage/clover.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: results/junit.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: test-results | |
| disable_search: true | |
| - name: Server logs (on failure) | |
| if: failure() | |
| working-directory: .uanetstandard-test-suite | |
| run: docker compose logs --tail=100 |