From 328009f6cd5507b64513e5c9c5784dc865e1aa84 Mon Sep 17 00:00:00 2001 From: SonataCI Date: Sat, 22 Apr 2023 20:11:08 +0000 Subject: [PATCH] DevKit updates --- .github/workflows/test-platforms.yaml | 54 ++++++++++++++++----------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-platforms.yaml b/.github/workflows/test-platforms.yaml index fe46a845..cc383e45 100644 --- a/.github/workflows/test-platforms.yaml +++ b/.github/workflows/test-platforms.yaml @@ -1,6 +1,12 @@ +# DO NOT EDIT THIS FILE! +# +# It's auto-generated by sonata-project/dev-kit package. + name: Test on platforms on: + schedule: + - cron: '30 0 * * *' push: branches: - 1.x @@ -9,11 +15,11 @@ on: jobs: test-mysql: - name: PHP ${{ matrix.php-version }} + MySQL ${{ matrix.mysql-version }} + highest + name: PHP ${{ matrix.php-version }} + MySQL ${{ matrix.mysql-version }} + ${{ matrix.dependencies }} runs-on: ubuntu-latest - continue-on-error: false + continue-on-error: ${{ matrix.allowed-to-fail }} env: DATABASE_URL: mysql://root@127.0.0.1:3306/sonata_tests @@ -31,44 +37,46 @@ jobs: strategy: matrix: php-version: - - "8.2" + - '8.2' mysql-version: - - "5.7" - - "8.0" + - '5.7' + - '8.0' + dependencies: [highest] + allowed-to-fail: [false] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - coverage: pcov + coverage: none tools: composer:v2 extensions: mysqli, pdo_mysql - name: Add PHPUnit matcher run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Install Composer dependencies (highest) - uses: ramsey/composer-install@v1 + - name: Install Composer dependencies (${{ matrix.dependencies }}) + uses: ramsey/composer-install@v2 with: - dependency-versions: highest + dependency-versions: ${{ matrix.dependencies }} composer-options: --prefer-dist --prefer-stable - name: Run Tests run: make test test-postgres: - name: PHP ${{ matrix.php-version }} + PostgreSQL ${{ matrix.postgres-version }} + highest + name: PHP ${{ matrix.php-version }} + PostgreSQL ${{ matrix.postgres-version }} + ${{ matrix.dependencies }} runs-on: ubuntu-latest - continue-on-error: false + continue-on-error: ${{ matrix.allowed-to-fail }} env: - DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/postgres?serverVersion=13&charset=utf8 + DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/postgres?serverVersion=${{ matrix.postgres-version }}&charset=utf8 services: postgres: @@ -83,30 +91,32 @@ jobs: strategy: matrix: php-version: - - "8.2" + - '8.2' postgres-version: - - "13" - - "14" - - "15" + - '13' + - '14' + - '15' + dependencies: [highest] + allowed-to-fail: [false] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - coverage: pcov + coverage: none tools: composer:v2 - name: Add PHPUnit matcher run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Install Composer dependencies (highest) - uses: ramsey/composer-install@v1 + - name: Install Composer dependencies (${{ matrix.dependencies }}) + uses: ramsey/composer-install@v2 with: - dependency-versions: highest + dependency-versions: ${{ matrix.dependencies }} composer-options: --prefer-dist --prefer-stable - name: Run Tests