diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..15bd172 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "CI" diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 9d0faaf..0c8e7f3 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -12,4 +12,4 @@ on: jobs: coding-standards: name: "Coding Standards" - uses: "doctrine/.github/.github/workflows/coding-standards.yml@4.0.0" + uses: "doctrine/.github/.github/workflows/coding-standards.yml@5.2.0" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index cfeedc4..5d8170d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -55,7 +55,7 @@ jobs: if: "${{ matrix.stability == 'dev' }}" - name: "Install dependencies with Composer" - uses: "ramsey/composer-install@v2" + uses: "ramsey/composer-install@v3" with: dependency-versions: "${{ matrix.dependencies }}" composer-options: "--prefer-dist" @@ -68,7 +68,7 @@ jobs: run: "vendor/bin/phpunit --coverage-clover=coverage.xml" - name: "Upload coverage file" - uses: "actions/upload-artifact@v3" + uses: "actions/upload-artifact@v4" with: name: "phpunit-${{ matrix.dependencies }}-${{ matrix.stability }}-${{ matrix.php-version }}.coverage" path: "coverage.xml" @@ -86,11 +86,13 @@ jobs: fetch-depth: 2 - name: "Download coverage files" - uses: "actions/download-artifact@v3" + uses: "actions/download-artifact@v4" with: path: "reports" - name: "Upload to Codecov" - uses: "codecov/codecov-action@v3" + uses: "codecov/codecov-action@v4" with: directory: reports + env: + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" diff --git a/.github/workflows/release-on-milestone-closed.yml b/.github/workflows/release-on-milestone-closed.yml index 34abfbc..67a81bf 100644 --- a/.github/workflows/release-on-milestone-closed.yml +++ b/.github/workflows/release-on-milestone-closed.yml @@ -8,7 +8,7 @@ on: jobs: release: name: "Git tag, release & create merge-up PR" - uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@4.0.0" + uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@5.2.0" secrets: GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 656c03c..fe6a82b 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -11,4 +11,4 @@ on: jobs: static-analysis: - uses: "doctrine/.github/.github/workflows/static-analysis.yml@4.0.0" + uses: "doctrine/.github/.github/workflows/static-analysis.yml@5.2.0" diff --git a/.symfony.bundle.yaml b/.symfony.bundle.yaml index c6b26f0..736b508 100644 --- a/.symfony.bundle.yaml +++ b/.symfony.bundle.yaml @@ -5,7 +5,6 @@ branches: - "3.6.x" - "3.7.x" maintained_branches: - - "3.5.x" - "3.6.x" - "3.7.x" doc_dir: "docs/" diff --git a/docs/index.rst b/docs/index.rst index 4a18ac1..2713113 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -12,36 +12,18 @@ This bundle is compatible with any database supported by `Doctrine ORM`_ Installation ------------ -In Symfony 4 or higher applications that use `Symfony Flex`_, open a command -console, enter your project directory and run the following command: +If you're using `Symfony Flex`_, run this command and you're done: .. code-block:: terminal $ composer require --dev orm-fixtures -Starting from Symfony 4.0, Flex should be used by default and register the -bundle for you, and in that case you can skip to the next section and start -writing fixtures. - -In Symfony 3 applications (or when not using Symfony Flex), run this other -command instead: +If you're not using Flex, run this other command instead: .. code-block:: terminal $ composer require --dev doctrine/doctrine-fixtures-bundle -You will also need to enable the bundle. In Symfony 3 and earlier applications, -update the ``AppKernel`` class:: - - // app/AppKernel.php - - // ... - // registerBundles() - if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { - // ... - $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); - } - Writing Fixtures ----------------