Skip to content

Commit

Permalink
lint in main
Browse files Browse the repository at this point in the history
  • Loading branch information
supun-io committed Oct 21, 2024
1 parent e12282b commit 4178a1d
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,33 @@ name: Lint
on:
push:
branches:
- main
- dev

jobs:
lint:
name: Code Style Fixes
runs-on: ubuntu-22.04
lint:
name: Code Style Fixes
runs-on: ubuntu-22.04

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

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Install dependencies
run: composer install --ansi --no-progress
- name: Install dependencies
run : composer install --ansi --no-progress

- name: Install Pint
run: composer global require laravel/pint
- name: Install Pint
run: composer global require laravel/pint

- name: Run Pint
run: pint
- name: Run Pint
run: pint

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Fixes coding style"
- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Fixes coding style"

0 comments on commit 4178a1d

Please sign in to comment.