mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
Updates Workflows
This commit is contained in:
parent
21bf4ae55b
commit
e81e1d4bf2
6
.github/workflows/larastan.yml
vendored
6
.github/workflows/larastan.yml
vendored
@ -3,9 +3,6 @@ name: Laravel Pest Tests
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
larastan:
|
larastan:
|
||||||
@ -18,7 +15,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-versions }}
|
php-version: '8.3'
|
||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
@ -58,7 +55,6 @@ jobs:
|
|||||||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
||||||
|
|
||||||
- name: Update Dependencies with latest stable
|
- name: Update Dependencies with latest stable
|
||||||
if: matrix.dependency-stability == 'prefer-stable'
|
|
||||||
run: composer update --prefer-stable
|
run: composer update --prefer-stable
|
||||||
|
|
||||||
- name: Execute Code Static Analysis with Larastan
|
- name: Execute Code Static Analysis with Larastan
|
||||||
|
7
.github/workflows/pint.yml
vendored
7
.github/workflows/pint.yml
vendored
@ -56,11 +56,12 @@ jobs:
|
|||||||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
||||||
|
|
||||||
- name: Update Dependencies with latest stable
|
- name: Update Dependencies with latest stable
|
||||||
if: matrix.dependency-stability == 'prefer-stable'
|
|
||||||
run: composer update --prefer-stable
|
run: composer update --prefer-stable
|
||||||
|
|
||||||
- name: Pint Code Style Fixer
|
- name: Run Laravel Pint
|
||||||
run: vendor/bin/pint fix
|
uses: aglipanci/laravel-pint-action@2.4.0
|
||||||
|
with:
|
||||||
|
preset: laravel
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
|
20
.github/workflows/tests.yml
vendored
20
.github/workflows/tests.yml
vendored
@ -25,14 +25,6 @@ jobs:
|
|||||||
--health-timeout=5s
|
--health-timeout=5s
|
||||||
--health-retries=3
|
--health-retries=3
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
operating-system: [ubuntu-latest]
|
|
||||||
php-versions: ['8.3']
|
|
||||||
dependency-stability: ['prefer-stable']
|
|
||||||
|
|
||||||
name: P${{ matrix.php-versions }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -40,7 +32,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: 20
|
||||||
|
|
||||||
- name: Cache node_modules Directory
|
- name: Cache node_modules Directory
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@ -59,7 +51,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-versions }}
|
php-version: '8.3'
|
||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
@ -99,7 +91,6 @@ jobs:
|
|||||||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
||||||
|
|
||||||
- name: Update Dependencies with latest stable
|
- name: Update Dependencies with latest stable
|
||||||
if: matrix.dependency-stability == 'prefer-stable'
|
|
||||||
run: composer update --prefer-stable
|
run: composer update --prefer-stable
|
||||||
|
|
||||||
- name: Generate key
|
- name: Generate key
|
||||||
@ -123,10 +114,3 @@ jobs:
|
|||||||
DB_PORT: 33306
|
DB_PORT: 33306
|
||||||
DB_USER: root
|
DB_USER: root
|
||||||
run: vendor/bin/pest
|
run: vendor/bin/pest
|
||||||
|
|
||||||
- name: Upload App Logs
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: app
|
|
||||||
path: storage/logs
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user