mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
Workflow Work
This commit is contained in:
parent
b6ef3eb761
commit
9b304df564
4
.env.ci
4
.env.ci
@ -12,8 +12,8 @@ DB_CONNECTION=mysql
|
|||||||
DB_HOST=mysql
|
DB_HOST=mysql
|
||||||
DB_PORT=33306
|
DB_PORT=33306
|
||||||
DB_DATABASE=testing
|
DB_DATABASE=testing
|
||||||
DB_USERNAME=root
|
DB_USERNAME=user
|
||||||
DB_PASSWORD=
|
DB_PASSWORD=password
|
||||||
|
|
||||||
FILESYSTEM_DISK=local
|
FILESYSTEM_DISK=local
|
||||||
QUEUE_CONNECTION=sync
|
QUEUE_CONNECTION=sync
|
||||||
|
23
.github/workflows/general.yaml
vendored
23
.github/workflows/general.yaml
vendored
@ -62,7 +62,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
php-version: '8.3'
|
php-version: '8.3'
|
||||||
extensions: mbstring, dom, fileinfo
|
extensions: mbstring, dom, fileinfo
|
||||||
tools: pint
|
|
||||||
coverage: none
|
coverage: none
|
||||||
- name: Configure Laravel Nova Authentication
|
- name: Configure Laravel Nova Authentication
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -90,7 +89,7 @@ jobs:
|
|||||||
- name: Clear Laravel Config
|
- name: Clear Laravel Config
|
||||||
run: php artisan config:clear
|
run: php artisan config:clear
|
||||||
- name: Run Pint Code Style Fixer
|
- name: Run Pint Code Style Fixer
|
||||||
run: 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]
|
||||||
@ -104,11 +103,18 @@ jobs:
|
|||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.3
|
image: mysql:8.3
|
||||||
env:
|
env:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
|
||||||
MYSQL_DATABASE: testing
|
MYSQL_DATABASE: testing
|
||||||
|
MYSQL_USER: user
|
||||||
|
MYSQL_PASSWORD: password
|
||||||
|
MYSQL_ROOT_PASSWORD: password
|
||||||
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
|
||||||
|
env:
|
||||||
|
DB_DATABASE: testing
|
||||||
|
DB_PORT: 33306
|
||||||
|
DB_USERNAME: user
|
||||||
|
DB_PASSWORD: password
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -152,16 +158,9 @@ jobs:
|
|||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
php artisan route:cache
|
php artisan route:cache
|
||||||
- name: Run Migrations
|
- name: Run Database Migrations
|
||||||
run: php artisan migrate -v
|
run: php artisan migrate
|
||||||
env:
|
|
||||||
DB_CONNECTION: mysql
|
|
||||||
DB_DATABASE: testing
|
|
||||||
DB_PORT: 33306
|
|
||||||
DB_USER: root
|
|
||||||
- name: Link Storage
|
- name: Link Storage
|
||||||
run: php artisan storage:link
|
run: php artisan storage:link
|
||||||
- name: Serve Application
|
|
||||||
run: php artisan serve & sleep 5
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: php artisan test
|
run: php artisan test
|
||||||
|
@ -10,7 +10,8 @@ class ModListStats extends Component
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
public $mod,
|
public $mod,
|
||||||
public $modVersion
|
public $modVersion
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
public function render(): View
|
public function render(): View
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user