PHP Classes

File: .github/workflows/Test.yml

Recommend this page to a friend!
  Classes of Sascha Greuel   PHP JSON Path   .github/workflows/Test.yml   Download  
File: .github/workflows/Test.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP JSON Path
Query values from data structures like XPATH
Author: By
Last change: Update Test.yml
Date: 2 years ago
Size: 1,350 bytes
 

Contents

Class file image Download
--- name: Test on: push: paths: - '**.php' - 'composer.json' branches: - 'main' pull_request: paths: - '**.php' - 'composer.json' branches: - 'main' workflow_dispatch: jobs: run: runs-on: ubuntu-latest strategy: matrix: php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ] #continue-on-error: ${{ matrix.php == '8.1' }} name: PHP ${{ matrix.php }} Test steps: - name: Git checkout uses: actions/checkout@v2.4.0 - name: Setup PHP uses: shivammathur/setup-php@2.16.0 with: php-version: ${{ matrix.php }} extensions: json coverage: pcov env: COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup problem matchers for PHPUnit run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install dependencies run: composer update --prefer-dist --no-interaction - name: Run phpcs run: composer cs-check -- -v - name: Setup PCOV if: matrix.php == '7.1' run: | composer require pcov/clobber vendor/bin/pcov clobber - name: Execute tests run: composer test -- -v --coverage-clover=coverage.xml - name: Run codecov uses: codecov/codecov-action@v1