File: .github/workflows/ci.yml

Recommend this page to a friend!
  Classes of Cydrick Nonog  >  PHP Query Builder for Laravel  >  .github/workflows/ci.yml  >  Download  
File: .github/workflows/ci.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Query Builder for Laravel
Test database queries without accessing a server
Author: By
Last change:
Date: 2 months ago
Size: 1,137 bytes
 

Contents

Class file image Download
name: ci
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  test:
    runs-on: ${{ matrix.operating-system }}
    strategy:
      matrix:
        operating-system: [ubuntu-latest, windows-latest, macos-latest]
        php-versions: ['7.1', '7.2', '7.3', '7.4']
    name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
    env:
      extensions: pdo, pdo_mysql, mbstring
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: ${{ env.extensions }}
          coverage: none
      - name: Validate composer.json and composer.lock
        run: composer validate
      - name: Install dependencies
        run: composer install --prefer-dist --no-progress --no-suggest
      - name: Run Test and Coverage
        run: phpdbg -rrq ./vendor/phpunit/phpunit/phpunit
      - run: vendor/bin/php-coveralls -v
        env:
          COVERALLS_RUN_LOCALLY: 1
          COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

For more information send a message to info at phpclasses dot org.