name: Samples PHP 7.x on: push: paths: - samples/server/petstore/php-laravel/lib/ pull_request: paths: - samples/server/petstore/php-laravel/lib/ jobs: build: name: Build PHP projects runs-on: ubuntu-latest strategy: fail-fast: false matrix: sample: # servers - samples/server/petstore/php-laravel/lib/ steps: - uses: actions/checkout@v3 - name: Setup PHP with tools uses: shivammathur/setup-php@v2 with: php-version: '7.4' tools: php-cs-fixer, phpunit - name: composer install working-directory: ${{ matrix.sample }} run: composer install - name: phpunit working-directory: ${{ matrix.sample }} run: vendor/bin/phpunit