Skip to content
Open

V1 #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ name: Production Test and Deploy

on:
push:
branches: [ 'main' ]
branches: [ 'main', 'v*' ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- uses: actions/checkout@v1
- name: Copy ENV Laravel Configuration for CI
run: php -r "file_exists('.env') || copy('.env.test', '.env');"
Expand All @@ -28,14 +36,12 @@ jobs:
- uses: fifsky/ssh-action@master
with:
command: |
cd /volume1/laravel_sites/gamequest
cd /volume1/laravel_sites/themeparks-api
php73 artisan down
git reset --hard
git pull
php73 /usr/local/bin/composer.phar install --optimize-autoloader --no-dev
npm i
# npm run prod
# php73 artisan migrate --force
php73 artisan cache:clear
php73 artisan config:cache
php73 artisan route:cache
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- uses: actions/checkout@v1
- name: Copy ENV Laravel Configuration for CI
run: php -r "file_exists('.env') || copy('.env.test', '.env');"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ npm-debug.log
yarn-error.log

.idea/
.DS_STORE
119 changes: 0 additions & 119 deletions .idea/Angular-Themeparks-API.iml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

Loading