✨ feat(.gitea/workflows): Supprime le job de test du workflow d'installation
This commit is contained in:
@@ -14,35 +14,8 @@ permissions:
|
|||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
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:
|
deploy:
|
||||||
name: 🚀 Deploy to Production
|
name: 🚀 Deploy to Production
|
||||||
needs: test
|
|
||||||
# Le job ne se lance que pour le cron ou manuellement, pas au push
|
# Le job ne se lance que pour le cron ou manuellement, pas au push
|
||||||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user