Skip to content

updating workflow

updating workflow #4

Workflow file for this run

name: Laravel Package Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring, xml, ctype, iconv, mysql
- name: Cache Composer Packages
uses: actions/cache@v2
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json', '**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Create Laravel Application
run: composer create-project --prefer-dist laravel/laravel laravel_app --no-interaction
- name: Set Working Directory
working-directory: ./laravel_app
- name: Require Package
run: composer require devdojo/app:dev-main
- name: Update My Package
run: composer update devdojo/auth --with-dependencies
- name: Run Migrations
run: php artisan migrate
- name: Run Tests
run: ./vendor/bin/pest