PHP Classes

File: .github/workflows/tests.yml

Recommend this page to a friend!
  Classes of El Amrani Chakir   PHP AJAX Response Router   .github/workflows/tests.yml   Download  
File: .github/workflows/tests.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP AJAX Response Router
Handle HTTP AJAX requests using router classes
Author: By
Last change: Update of .github/workflows/tests.yml
Date: 2 years ago
Size: 1,328 bytes
 

Contents

Class file image Download
name: tests on: pull_request: push: branches: - "master" jobs: build: name: PHP ${{ matrix.php-versions }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] steps: - name: Setup PHP Action uses: shivammathur/setup-php@1.8.2 with: extensions: intl php-version: "${{ matrix.php-versions }}" coverage: pcov - name: Checkout uses: actions/checkout@v2 - name: Validate composer.json run: "composer validate" - name: Install dependencies run: "composer install --prefer-dist --no-progress --no-suggest" - name: Run test suite run: "vendor/bin/phpunit --coverage-clover=coverage.xml" if: ${{ matrix.php >= 7.1 }} - name: Run test suite for PHP versions < 7.1 run: "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage.xml" if: ${{ matrix.php < 7.1 }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml flags: tests name: codecov-umbrella yml: ./codecov.yml fail_ci_if_error: true