diff --git a/.env.ci b/.env.ci index 08b91e4..4138eee 100644 --- a/.env.ci +++ b/.env.ci @@ -9,13 +9,13 @@ LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=mysql -DB_HOST=127.0.0.1 +DB_HOST=mysql DB_PORT=33306 DB_DATABASE=testing DB_USERNAME=user DB_PASSWORD=password -SCOUT_DRIVER=null +SCOUT_DRIVER=collection FILESYSTEM_DISK=local QUEUE_CONNECTION=sync CACHE_STORE=array diff --git a/.github/README.md b/.gitea/README.md similarity index 100% rename from .github/README.md rename to .gitea/README.md diff --git a/.github/logo.spt.png b/.gitea/logo.spt.png similarity index 100% rename from .github/logo.spt.png rename to .gitea/logo.spt.png diff --git a/.github/workflows/quality.yaml b/.gitea/workflows/quality.yaml similarity index 99% rename from .github/workflows/quality.yaml rename to .gitea/workflows/quality.yaml index 739f925..a755f95 100644 --- a/.github/workflows/quality.yaml +++ b/.gitea/workflows/quality.yaml @@ -16,28 +16,34 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.3' extensions: mbstring, dom, fileinfo coverage: none + - name: Get Composer Cache Directory id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache composer dependencies uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- + - name: Install Composer Dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader + - name: Prepare Laravel Environment run: | php -r "file_exists('.env') || copy('.env.ci', '.env');" php artisan key:generate php artisan optimize + - name: Execute Code Static Analysis with Larastan run: ./vendor/bin/phpstan analyse -c ./phpstan.neon --no-progress --error-format=github @@ -48,30 +54,37 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.3' extensions: mbstring, dom, fileinfo coverage: none + - name: Get Composer Cache Directory id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache composer dependencies uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- + - name: Install Composer Dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader + - name: Prepare Laravel Environment run: | php -r "file_exists('.env') || copy('.env.ci', '.env');" php artisan key:generate php artisan optimize + - name: Run Pint Code Style Fixer run: ./vendor/bin/pint + - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Pint PHP Style Fixes [no ci] diff --git a/.github/workflows/tests.yaml b/.gitea/workflows/tests.yaml similarity index 99% rename from .github/workflows/tests.yaml rename to .gitea/workflows/tests.yaml index fc8bf60..2fa2410 100644 --- a/.github/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -16,50 +16,64 @@ jobs: ports: - 33306:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.3' extensions: mbstring, dom, fileinfo coverage: none + - name: Get Composer Cache Directory id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache composer dependencies uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- + - name: Install Composer Dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader + - name: Get NPM Cache Directory id: npm-cache run: echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV + - name: Cache NPM Dependencies uses: actions/cache@v4 with: path: ${{ env.NPM_CACHE_DIR }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node- + - name: Install npm dependencies run: npm ci + - name: Build Front-end Assets run: npm run build + - name: Prepare Laravel Environment run: | php -r "file_exists('.env') || copy('.env.ci', '.env');" php artisan key:generate php artisan optimize + - name: Run Database Migrations run: php artisan migrate + - name: Link Storage run: php artisan storage:link + - name: Run Tests run: php artisan test + - name: Display Laravel Log if: failure() run: cat storage/logs/laravel.log diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4f8bc32..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: 2 -updates: - # Composer dependencies (PHP) - - package-ecosystem: "composer" - directory: "/" - schedule: - interval: "daily" - time: "15:00" # 10am EST - open-pull-requests-limit: 10 - target-branch: "develop" - labels: - - "dependencies" - assignees: - - "Refringe" - - # GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - time: "15:00" # 10am EST - open-pull-requests-limit: 10 - target-branch: "develop" - labels: - - "dependencies" - assignees: - - "Refringe" - - # npm modules (JavaScript) - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "daily" - time: "15:00" # 10am EST - open-pull-requests-limit: 10 - target-branch: "develop" - labels: - - "dependencies" - assignees: - - "Refringe"