Skip to content

Adding phpinfo route #27

Adding phpinfo route

Adding phpinfo route #27

Workflow file for this run

name: Build, test and deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Create database
run: touch ./database/database.sqlite
- name: Copy .env
run: cp .env.test .env
- name: Install app
run: composer install
- name: Run migrations
run: php artisan migrate
- name: Test PHPStan
run: ./vendor/bin/phpstan analyse
- name: Test PHPUnit
run: ./vendor/bin/phpunit
- name: Deploy using ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
cd ${{ secrets.APP_PATH }}
./build.sh