Skip to content

Merge pull request #588 from madewithlove/dependabot/composer/mockery… #1325

Merge pull request #588 from madewithlove/dependabot/composer/mockery…

Merge pull request #588 from madewithlove/dependabot/composer/mockery… #1325

Workflow file for this run

name: CI
on: [push, pull_request_target]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: 📤 Checkout project
uses: actions/checkout@v3
- name: 📩 Fetch vendor from cache
uses: actions/cache@v3
id: cache
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
- name: 🐘 Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: "8.2"
tools: composer
env:
update: true
- name: 🔢 Create .env file
run: cp .env.example .env
- name: 📦 Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: 🔑 Generate a laravel key
run: php artisan key:generate
- name: ✅ Run PHPUnit tests
run: php artisan test
phpstan:
name: Static analysis
runs-on: ubuntu-latest
steps:
- name: 📤 Checkout project
uses: actions/checkout@v3
- name: 📩 Fetch vendor from cache
uses: actions/cache@v3
id: cache
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
- name: 🐘 Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: "8.2"
tools: composer
env:
update: true
- name: 📦 Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: ✅ Run static analysis
run: vendor/bin/phpstan analyse
coding-standards:
name: Coding standards
runs-on: ubuntu-latest
steps:
- name: 📤 Checkout project
uses: actions/checkout@v3
- name: 📩 Fetch vendor from cache
uses: actions/cache@v3
id: cache
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
- name: 🐘 Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: "8.2"
tools: composer
env:
update: true
- name: 📦 Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: ✅ Run Laravel Pint
run: vendor/bin/pint
- name: 📥 Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix coding standards issues