forked from aslan/applicant-site
fix CI
This commit is contained in:
parent
447f8f5552
commit
8e18821812
|
@ -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:
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue