diff --git a/.gitea/workflows/install-deps.yml b/.gitea/workflows/install-deps.yml index a6a69e8..af7e70e 100644 --- a/.gitea/workflows/install-deps.yml +++ b/.gitea/workflows/install-deps.yml @@ -14,35 +14,8 @@ permissions: id-token: write jobs: - test: - name: ๐Ÿงช Run Tests - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.4' - extensions: ctype, iconv, dom, libxml, zip, pdo, pdo_sqlite, intl - - - name: Install Dependencies - run: composer install --prefer-dist --no-progress - - - name: Prepare Test Database - run: | - mkdir -p var - echo 'DATABASE_URL="sqlite:///%kernel.project_dir%/var/test.db"' > .env.test.local - php bin/console doctrine:database:create --env=test --if-not-exists - php bin/console doctrine:schema:update --force --env=test - - - name: Run PHPUnit - run: php bin/phpunit - deploy: name: ๐Ÿš€ Deploy to Production - needs: test # Le job ne se lance que pour le cron ou manuellement, pas au push if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest