Skip to content

Formatting and fix tests #19

Formatting and fix tests

Formatting and fix tests #19

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Check Code Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "laravel-pint"
uses: aglipanci/[email protected]
with:
preset: laravel
verboseMode: true
testMode: true
configPath: "pint.json"
pintVersion: 1.8.0
tests:
name: Execute Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: xdebug
- name: Install Dependencies
run: |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Tests
run: composer test
deploy:
name: Deploy to Packagist
needs: [lint, tests]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Packagist Update
uses: mnavarrocarter/[email protected]
with:
username: ${{ secrets.PACKAGIST_USERNAME }}
api_token: ${{ secrets.PACKAGIST_API_TOKEN }}