Skip to content

Commit

Permalink
test doctrine version
Browse files Browse the repository at this point in the history
  • Loading branch information
Smeagolworms4 committed Apr 3, 2022
1 parent ec5b080 commit d70d2f4
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/doctrine_2.10.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/doctrine_2.11.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/doctrine_2.8.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/doctrine_2.9.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 0 additions & 1 deletion src/ManyToManySetter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace GollumSF\EntityRelationSetter;

use Doctrine\Inflector\Inflector;
use Doctrine\Inflector\InflectorFactory;
use Doctrine\Persistence\Proxy;

Expand Down
1 change: 0 additions & 1 deletion src/OneToManySetter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace GollumSF\EntityRelationSetter;

use Doctrine\Inflector\Inflector;
use Doctrine\Inflector\InflectorFactory;
use Doctrine\Persistence\Proxy;

Expand Down

0 comments on commit d70d2f4

Please sign in to comment.