diff --git a/.github/workflows/coding-conventions.yml b/.github/workflows/coding-conventions.yml index f2ec89b07..5faf3514b 100644 --- a/.github/workflows/coding-conventions.yml +++ b/.github/workflows/coding-conventions.yml @@ -3,7 +3,13 @@ name: Coding Conventions on: push: branches: [3.x] + paths-ignore: + - "docs/**" + - ".github/**" pull_request: + paths-ignore: + - "docs/**" + - ".github/**" workflow_dispatch: concurrency: diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 0ab2c4d50..7b3286867 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -4,7 +4,7 @@ on: pull_request: paths-ignore: - "docs/**" - - ".github/**" + # - ".github/**" workflow_dispatch: schedule: - cron: "0 0 * * *" @@ -37,7 +37,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, pdo, sqlite, pdo_sqlite, pdo_mysql, pdo_pgsql, intl, ftp, zip - coverage: pcov + coverage: none - name: Setup Bun uses: oven-sh/setup-bun@v2 @@ -59,20 +59,21 @@ jobs: os: [ubuntu-latest] php: [8.5] database: [sqlite, mysql, postgres] - stability: [prefer-stable] + dependencies: [highest] include: - os: windows-latest php: 8.5 database: sqlite - stability: prefer-stable + dependencies: highest + - os: ubuntu-latest php: 8.5 database: sqlite - stability: prefer-lowest + dependencies: lowest env: POSTGRES_USER: ${{ matrix.os == 'windows-latest' && 'postgres' || 'runner' }} - name: "Run tests: PHP ${{ matrix.php }} - ${{ matrix.database }} - ${{ matrix.stability }} - ${{ matrix.os }}" + name: "Run tests: PHP ${{ matrix.php }} - ${{ matrix.database }} - ${{ matrix.dependencies }} - ${{ matrix.os }}" steps: - name: Checkout code @@ -83,7 +84,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, pdo, sqlite, pdo_sqlite, pdo_mysql, pdo_pgsql, intl, ftp, zip - coverage: pcov + coverage: none - name: Setup problem matchers run: | @@ -91,7 +92,10 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Install dependencies - run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs + uses: ramsey/composer-install@v4 + with: + dependency-versions: ${{ matrix.dependencies }} + composer-options: "--prefer-dist --ignore-platform-reqs" - name: "Setup Redis" if: ${{ matrix.os != 'windows-latest' }} diff --git a/.github/workflows/isolated-tests.yml b/.github/workflows/isolated-tests.yml index 3662ec5ee..c5b65eea5 100644 --- a/.github/workflows/isolated-tests.yml +++ b/.github/workflows/isolated-tests.yml @@ -4,7 +4,7 @@ on: pull_request: paths-ignore: - "docs/**" - - ".github/**" +# - ".github/**" workflow_dispatch: schedule: - cron: "0 0 * * *" @@ -48,10 +48,10 @@ jobs: package: ${{ fromJson(needs.get_packages.outputs.matrix) }} php: - 8.5 - stability: - - prefer-stable - - prefer-lowest - name: "Run tests: ${{ matrix.package.name }} - PHP ${{ matrix.php }} - ${{ matrix.stability }}" + dependencies: + - highest + - lowest + name: "Run tests: ${{ matrix.package.name }} - PHP ${{ matrix.php }} - ${{ matrix.dependencies }}" steps: - name: Checkout code uses: actions/checkout@v4 @@ -63,7 +63,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, intl - coverage: pcov + coverage: none - name: Setup Redis if: ${{ matrix.os != 'windows-latest' && matrix.package.name == 'kv-store' }} @@ -77,11 +77,18 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Build Packages + run: ./bin/build-packages + - name: Install dependencies - run: | - ./bin/build-packages - cd "packages/${{ matrix.package.basename }}" - composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs + uses: ramsey/composer-install@v4 + with: + dependency-versions: ${{ matrix.dependencies }} + composer-options: >- + --prefer-dist + --ignore-platform-reqs + --prefer-stable + --working-dir=packages/${{ matrix.package.basename }} - name: Execute tests run: phpunit -c "packages/${{ matrix.package.basename }}/phpunit.xml"