forked from loafle/openapi-generator-original
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
795 B
YAML
33 lines
795 B
YAML
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@v4
|
|
- 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
|