mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Possible Gitea Action Fix
Changes MySQL host to `mysql`.
This commit is contained in:
parent
aaf8ee4249
commit
df01366697
4
.env.ci
4
.env.ci
@ -9,13 +9,13 @@ LOG_DEPRECATIONS_CHANNEL=null
|
|||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=mysql
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=mysql
|
||||||
DB_PORT=33306
|
DB_PORT=33306
|
||||||
DB_DATABASE=testing
|
DB_DATABASE=testing
|
||||||
DB_USERNAME=user
|
DB_USERNAME=user
|
||||||
DB_PASSWORD=password
|
DB_PASSWORD=password
|
||||||
|
|
||||||
SCOUT_DRIVER=null
|
SCOUT_DRIVER=collection
|
||||||
FILESYSTEM_DISK=local
|
FILESYSTEM_DISK=local
|
||||||
QUEUE_CONNECTION=sync
|
QUEUE_CONNECTION=sync
|
||||||
CACHE_STORE=array
|
CACHE_STORE=array
|
||||||
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
@ -16,28 +16,34 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.3'
|
php-version: '8.3'
|
||||||
extensions: mbstring, dom, fileinfo
|
extensions: mbstring, dom, fileinfo
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache composer dependencies
|
- name: Cache composer dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-composer-
|
restore-keys: ${{ runner.os }}-composer-
|
||||||
|
|
||||||
- name: Install Composer Dependencies
|
- name: Install Composer Dependencies
|
||||||
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
- name: Prepare Laravel Environment
|
- name: Prepare Laravel Environment
|
||||||
run: |
|
run: |
|
||||||
php -r "file_exists('.env') || copy('.env.ci', '.env');"
|
php -r "file_exists('.env') || copy('.env.ci', '.env');"
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
php artisan optimize
|
php artisan optimize
|
||||||
|
|
||||||
- name: Execute Code Static Analysis with Larastan
|
- name: Execute Code Static Analysis with Larastan
|
||||||
run: ./vendor/bin/phpstan analyse -c ./phpstan.neon --no-progress --error-format=github
|
run: ./vendor/bin/phpstan analyse -c ./phpstan.neon --no-progress --error-format=github
|
||||||
|
|
||||||
@ -48,30 +54,37 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.3'
|
php-version: '8.3'
|
||||||
extensions: mbstring, dom, fileinfo
|
extensions: mbstring, dom, fileinfo
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache composer dependencies
|
- name: Cache composer dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-composer-
|
restore-keys: ${{ runner.os }}-composer-
|
||||||
|
|
||||||
- name: Install Composer Dependencies
|
- name: Install Composer Dependencies
|
||||||
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
- name: Prepare Laravel Environment
|
- name: Prepare Laravel Environment
|
||||||
run: |
|
run: |
|
||||||
php -r "file_exists('.env') || copy('.env.ci', '.env');"
|
php -r "file_exists('.env') || copy('.env.ci', '.env');"
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
php artisan optimize
|
php artisan optimize
|
||||||
|
|
||||||
- name: Run Pint Code Style Fixer
|
- name: Run Pint Code Style Fixer
|
||||||
run: ./vendor/bin/pint
|
run: ./vendor/bin/pint
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: Pint PHP Style Fixes [no ci]
|
commit_message: Pint PHP Style Fixes [no ci]
|
@ -16,50 +16,64 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 33306:3306
|
- 33306:3306
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.3'
|
php-version: '8.3'
|
||||||
extensions: mbstring, dom, fileinfo
|
extensions: mbstring, dom, fileinfo
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache composer dependencies
|
- name: Cache composer dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-composer-
|
restore-keys: ${{ runner.os }}-composer-
|
||||||
|
|
||||||
- name: Install Composer Dependencies
|
- name: Install Composer Dependencies
|
||||||
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
- name: Get NPM Cache Directory
|
- name: Get NPM Cache Directory
|
||||||
id: npm-cache
|
id: npm-cache
|
||||||
run: echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV
|
run: echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Cache NPM Dependencies
|
- name: Cache NPM Dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.NPM_CACHE_DIR }}
|
path: ${{ env.NPM_CACHE_DIR }}
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: ${{ runner.os }}-node-
|
restore-keys: ${{ runner.os }}-node-
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build Front-end Assets
|
- name: Build Front-end Assets
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Prepare Laravel Environment
|
- name: Prepare Laravel Environment
|
||||||
run: |
|
run: |
|
||||||
php -r "file_exists('.env') || copy('.env.ci', '.env');"
|
php -r "file_exists('.env') || copy('.env.ci', '.env');"
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
php artisan optimize
|
php artisan optimize
|
||||||
|
|
||||||
- name: Run Database Migrations
|
- name: Run Database Migrations
|
||||||
run: php artisan migrate
|
run: php artisan migrate
|
||||||
|
|
||||||
- name: Link Storage
|
- name: Link Storage
|
||||||
run: php artisan storage:link
|
run: php artisan storage:link
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: php artisan test
|
run: php artisan test
|
||||||
|
|
||||||
- name: Display Laravel Log
|
- name: Display Laravel Log
|
||||||
if: failure()
|
if: failure()
|
||||||
run: cat storage/logs/laravel.log
|
run: cat storage/logs/laravel.log
|
40
.github/dependabot.yml
vendored
40
.github/dependabot.yml
vendored
@ -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"
|
|
Loading…
x
Reference in New Issue
Block a user