Remove unnecessary custom exception #21
This file contains 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: 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 }} |