Skip to content

Commit

Permalink
added Laravel Pint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaishiyoku committed Oct 6, 2023
1 parent f1a892b commit 685a781
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/laravel-pint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Laravel Pint

on:
push:
paths-ignore:
- "**.md"
- 'docs/**'
branches: [master]
pull_request:
paths-ignore:
- "**.md"
- 'docs/**'

concurrency:
group: sa-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
cancel-in-progress: true

jobs:
laravel-pint:
runs-on: ubuntu-latest

steps:
- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: 8.1
extensions: "dom, curl, libxml, mbstring, zip, fileinfo"
tools: "composer:v2"
coverage: "none"

- name: "Install dependencies from composer.json"
run: "composer install --no-interaction --no-progress --dev"

- name: "Execute Laravel Pint"
run: "./vendor/bin/pint --test"

0 comments on commit 685a781

Please sign in to comment.