Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.3.x' into 3.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Mar 18, 2021
2 parents 0e37888 + 292f7fc commit ce3164f
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 46 deletions.
2 changes: 0 additions & 2 deletions .doctrine-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"name": "3.1",
"branchName": "3.1.x",
"slug": "3.1",
"upcoming": true
},
{
"name": "3.0",
"branchName": "3.0.x",
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BC_Break.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ about: Have you encountered an issue during upgrade? 💣
---

<!--
Before reporting a BC break, please consult the upgrading document to make sure it's not an expected change: https://github.com/doctrine/migrations/blob/master/UPGRADE.md
Before reporting a BC break, please consult the upgrading document to make sure it's not an expected change: https://github.com/doctrine/migrations/blob/3.1.x/UPGRADE.md
-->

### BC Break Report
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ on:
pull_request:
branches:
- "*.x"
- "master"
push:
branches:
- "*.x"
- "master"

jobs:
coding-standards:
Expand All @@ -32,15 +30,10 @@ jobs:
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Cache dependencies installed with Composer"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Install dependencies with Composer"
run: "composer install --no-interaction --no-progress"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"

# https://github.com/doctrine/.github/issues/3
- name: "Run PHP_CodeSniffer"
Expand Down
26 changes: 8 additions & 18 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
deps:
- "normal"
dependencies:
- "highest"
include:
- deps: "low"
- deps: "lowest"
php-version: "7.2"

steps:
Expand All @@ -54,24 +54,14 @@ jobs:
- name: "Download box"
run: "./download-box.sh"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.deps }}-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Downgrade Composer"
run: "composer self-update --1"
if: "${{ matrix.deps == 'low' }}"
if: "${{ matrix.deps == 'lowest' }}"

- name: "Install dependencies with composer"
run: "composer update --no-interaction --prefer-dist --no-progress"
if: "${{ matrix.deps == 'normal' }}"

- name: "Install lowest possible dependencies with composer"
run: "composer update --no-interaction --prefer-dist --prefer-lowest --no-progress"
if: "${{ matrix.deps == 'low' }}"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ on:
pull_request:
branches:
- "*.x"
- "master"
push:
branches:
- "*.x"
- "master"

jobs:
static-analysis-phpstan:
Expand All @@ -32,15 +30,10 @@ jobs:
php-version: "${{ matrix.php-version }}"
extensions: "pdo_sqlite"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Install dependencies with composer"
run: "composer install --no-interaction --no-progress"
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse"
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
},
"composer-normalize": {
"indent-size": 4,
"indent-style": "space"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">
vendor/doctrine/orm/doctrine-mapping.xsd">

<entity name="Doctrine\Migrations\Tests\Provider\A" table="a">
<id name="id" type="integer" column="id">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">
vendor/doctrine/orm/doctrine-mapping.xsd">

<entity name="Doctrine\Migrations\Tests\Provider\C" table="c">
<id name="id" type="integer" column="id">
Expand Down

0 comments on commit ce3164f

Please sign in to comment.