Adding phpinfo route #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |