name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v1

    - name: Dump PHP version
      run: php -v

    - name: Validate composer.json
      run: composer validate --strict

    - name: Lint all PHP files
      run: composer run qa:lint

    - name: Install Barrel API Client dependencies through Composer
      run: composer install --prefer-dist --no-progress --no-suggest

    - name: Get lines of code
      run: composer run qa:phploc

    - uses: actions/upload-artifact@master
      with:
        name: phploc
        path: build/artifacts/phploc/phploc.xml

    - name: Run static code analyser
      run: composer run qa:phpstan

    - name: Run unit tests
      run: composer run test:phpunit:coverage

    - uses: actions/upload-artifact@master
      with:
        name: PHPUnit Code Coverage report
        path: build/artifacts/phpunit/coverage
name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v1

    - name: Dump PHP version
      run: php -v

    - name: Validate composer.json
      run: composer validate --strict

    - name: Lint all PHP files
      run: composer run qa:lint

    - name: Install Barrel API Client dependencies through Composer
      run: composer install --prefer-dist --no-progress --no-suggest

    - name: Get lines of code
      run: composer run qa:phploc

    - uses: actions/upload-artifact@v1
      with:
        name: phploc
        path: build/artifacts/phploc/phploc.xml

    - name: Run static code analyser
      run: composer run qa:phpstan

    - name: Run unit tests
      run: composer run test:phpunit:coverage

    - uses: actions/upload-artifact@v1
      with:
        name: PHPUnit Code Coverage report
        path: build/artifacts/phpunit/coverage
Use v1 instead of master
Use v1 instead of master
