name: CI
on: [pull_request]
jobs:
  static_analysis:
    name: Static analysis with phpstan
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: shivammathur/setup-php@v2
        with:
          php-version: '7.3'

      - uses: "ramsey/composer-install@v1"

      - run: composer require --dev phpstan/phpstan

      - run: vendor/bin/phpstan analyse

  tests:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        php: ['5.6', '7.0', '7.1', '7.2', '7.3']
    name: PHP ${{ matrix.php }} tests
    steps:
      - uses: actions/checkout@v2

      - uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          coverage: xdebug

      - run: ./travisci/bin/start.sh

      - run: ./travisci/bin/logs.sh

      - uses: "ramsey/composer-install@v1"

      - run: vendor/bin/phpunit

      - run: ./travisci/bin/stop.sh

name: CI
on: [pull_request]
jobs:
  static_analysis:
    name: Static analysis with phpstan
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: shivammathur/setup-php@v2
        with:
          php-version: '7.3'

      - uses: "ramsey/composer-install@v1"

      - run: composer require --dev phpstan/phpstan

      - run: vendor/bin/phpstan analyse

  tests:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        php: ['5.6', '7.0', '7.1', '7.2', '7.3']
    name: PHP ${{ matrix.php }} tests
    steps:
      - uses: actions/checkout@v2

      - uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}
          coverage: xdebug

      - run: ./travisci/bin/start.sh

      - uses: "ramsey/composer-install@v1"

      - run: ./travisci/bin/logs.sh

      - run: vendor/bin/phpunit

      - run: ./travisci/bin/stop.sh

Move steps around to match what was there
Move steps around to match what was there
