From d70d2f498d846434e0a10ffb00caec8623540688 Mon Sep 17 00:00:00 2001 From: SmeagolWorms4 Date: Mon, 4 Apr 2022 00:05:29 +0200 Subject: [PATCH] test doctrine version --- .github/actions/test/action.yml | 6 +++++- .github/workflows/doctrine_2.10.yml | 22 ++++++++++++++++++++++ .github/workflows/doctrine_2.11.yml | 22 ++++++++++++++++++++++ .github/workflows/doctrine_2.8.yml | 22 ++++++++++++++++++++++ .github/workflows/doctrine_2.9.yml | 22 ++++++++++++++++++++++ src/ManyToManySetter.php | 1 - src/OneToManySetter.php | 1 - 7 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/doctrine_2.10.yml create mode 100644 .github/workflows/doctrine_2.11.yml create mode 100644 .github/workflows/doctrine_2.8.yml create mode 100644 .github/workflows/doctrine_2.9.yml diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index b452f24..465c82a 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -6,6 +6,10 @@ inputs: description: 'Set php version' required: true default: '8.0' + doctrine_version: + description: 'Set symfony version' + required: true + default: '' symfony_version: description: 'Set symfony version' required: true @@ -41,8 +45,8 @@ runs: shell: bash run: | if [ "${{ inputs.symfony_version }}" != "" ]; then composer require "symfony/symfony:${{ inputs.symfony_version }}" --no-update; fi; + if [ "${{ inputs.doctrine_version }}" != "" ]; then composer require "doctrine/orm:${{ inputs.doctrine_version }}" --no-update; fi; if [ "${{ inputs.php_version }}" == "7.2" ]; then composer require --dev "phpunit/phpunit:8.5" --no-update; fi; - if [ "${{ inputs.php_version }}" == "7.1" ]; then composer require --dev "phpunit/phpunit:7" --no-update; fi; composer update --prefer-dist --no-interaction $composer_flags - name: Run tests diff --git a/.github/workflows/doctrine_2.10.yml b/.github/workflows/doctrine_2.10.yml new file mode 100644 index 0000000..cfd831c --- /dev/null +++ b/.github/workflows/doctrine_2.10.yml @@ -0,0 +1,22 @@ +name: Symfony 4.4 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + doctrine_version: '2.10' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/doctrine_2.11.yml b/.github/workflows/doctrine_2.11.yml new file mode 100644 index 0000000..8d91388 --- /dev/null +++ b/.github/workflows/doctrine_2.11.yml @@ -0,0 +1,22 @@ +name: Symfony 4.4 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + doctrine_version: '2.11' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/doctrine_2.8.yml b/.github/workflows/doctrine_2.8.yml new file mode 100644 index 0000000..32602f9 --- /dev/null +++ b/.github/workflows/doctrine_2.8.yml @@ -0,0 +1,22 @@ +name: Symfony 4.4 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + doctrine_version: '2.8' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/doctrine_2.9.yml b/.github/workflows/doctrine_2.9.yml new file mode 100644 index 0000000..03e2aba --- /dev/null +++ b/.github/workflows/doctrine_2.9.yml @@ -0,0 +1,22 @@ +name: Symfony 4.4 + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + create: + tags: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/test + with: + doctrine_version: '2.9' + github_token: ${{ secrets.GITHUB_TOKEN }} + discord_webhook: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/src/ManyToManySetter.php b/src/ManyToManySetter.php index 736da91..a7e1d1b 100644 --- a/src/ManyToManySetter.php +++ b/src/ManyToManySetter.php @@ -2,7 +2,6 @@ namespace GollumSF\EntityRelationSetter; -use Doctrine\Inflector\Inflector; use Doctrine\Inflector\InflectorFactory; use Doctrine\Persistence\Proxy; diff --git a/src/OneToManySetter.php b/src/OneToManySetter.php index f6e694f..a4c3a25 100644 --- a/src/OneToManySetter.php +++ b/src/OneToManySetter.php @@ -2,7 +2,6 @@ namespace GollumSF\EntityRelationSetter; -use Doctrine\Inflector\Inflector; use Doctrine\Inflector\InflectorFactory; use Doctrine\Persistence\Proxy;