From 26aeb356d8e6e2837444b069286ab5ced847ebe9 Mon Sep 17 00:00:00 2001 From: Leon Morival Date: Sun, 17 May 2026 15:43:32 +0200 Subject: [PATCH] feat: setup tests --- .gitea/workflows/deploy.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e997d6d..008d428 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,16 +18,20 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 - - name: Run tests - run: | - docker run --rm \ - -v /workspace:/app \ - -w /app \ - laravelsail/php84-composer:latest \ + - name: Run Tests + uses: docker://laravelsail/php84-composer:latest + env: + APP_ENV: testing + APP_KEY: base64:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + DB_CONNECTION: sqlite + DB_DATABASE: ":memory:" + with: + args: | bash -c "composer install --no-interaction --ignore-platform-req=ext-intl && php artisan test" + # ========================= # BUILD & PUSH IMAGE # =========================