mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
commit
b72dfea35c
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@ -9,34 +9,36 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-20.04
|
name: PHPUnit PHP ${{ matrix.php-version }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony-version }})
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php-version:
|
php-version:
|
||||||
- '8.1'
|
- '8.1'
|
||||||
- '8.2'
|
- '8.2'
|
||||||
|
- '8.3'
|
||||||
symfony-version:
|
symfony-version:
|
||||||
- '5.4.*'
|
- '5.4.*'
|
||||||
- '6.4.*'
|
- '6.4.*'
|
||||||
coverage: [ 'none' ]
|
coverage: [ 'none' ]
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "actions/checkout@v2"
|
uses: "actions/checkout@v4"
|
||||||
|
|
||||||
- name: "Install PHP"
|
- name: "Install PHP"
|
||||||
uses: "shivammathur/setup-php@v2"
|
uses: "shivammathur/setup-php@v2"
|
||||||
with:
|
with:
|
||||||
tools: flex
|
|
||||||
php-version: "${{ matrix.php-version }}"
|
php-version: "${{ matrix.php-version }}"
|
||||||
coverage: "${{ matrix.coverage }}"
|
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: Configure Symfony
|
||||||
uses: ramsey/composer-install@v2
|
run: composer config extra.symfony.require "${{ matrix.symfony-version }}"
|
||||||
env:
|
|
||||||
SYMFONY_REQUIRE: "${{ matrix.symfony-version }}"
|
|
||||||
|
|
||||||
- name: "Run tests"
|
- name: Update project dependencies
|
||||||
run: make phpunit
|
run: composer update --no-progress --ansi --prefer-stable
|
||||||
env:
|
|
||||||
PHP_IMAGE_TAG: "${{ matrix.php-version }}"
|
- name: Validate composer
|
||||||
|
run: composer validate --strict --no-check-lock
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: vendor/bin/phpunit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user