From 2737cf04ede01ce0762078eff5f10a2d806dac7f Mon Sep 17 00:00:00 2001 From: pesu98 Date: Mon, 11 May 2026 16:21:32 +0800 Subject: [PATCH] test runner --- .gitea/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..a34dcfa --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: ['**'] + pull_request: + branches: ['**'] + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.4' + extensions: pdo, pdo_sqlite, sqlite3 + coverage: none + + - name: Copy .env + run: cp .env.example .env + + - name: Install Composer dependencies + run: composer install --no-interaction --prefer-dist --optimize-autoloader + + - name: Generate app key + run: php artisan key:generate + + - name: Run migrations + run: php artisan migrate --no-interaction --force + + - name: Run tests + run: php artisan test --compact