fix CI
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Failing after 1m33s Details
Tests & Lint & Deploy to Railway / deploy (push) Has been skipped Details

This commit is contained in:
aslan 2024-02-10 14:36:40 +03:00
parent 447f8f5552
commit 8e18821812
2 changed files with 6 additions and 5 deletions

View File

@ -21,7 +21,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }} - name: Set up PHP ${{ matrix.php-version }} with extensions and tools
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-version }} php-version: ${{ matrix.php-version }}
@ -51,7 +51,7 @@ jobs:
run: composer install # will work run: composer install # will work
- name: Setup project - name: Setup project
run: make setup run: make setup-test
- name: Check lint - name: Check lint
run: make lint run: make lint
@ -63,7 +63,7 @@ jobs:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: deploy to test server
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
with: with:

View File

@ -16,11 +16,12 @@ setup:
make ide-helper make ide-helper
setup-test: setup-test:
composer install --no-plugins --no-scripts composer install
cp -n .env.example .env
php artisan key:gen --ansi php artisan key:gen --ansi
rm database/database.sqlite rm database/database.sqlite
touch database/database.sqlite touch database/database.sqlite
php artisan migrate:refresh php artisan migrate
php artisan db:seed php artisan db:seed
npm ci npm ci
npm run build npm run build