Skip to content

Commit

Permalink
feat: workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Jan 22, 2025
1 parent 2017b47 commit 0d00ad6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/linting_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,33 @@ name: Linting Tests

on: [push, pull_request]

permissions:
contents: write

jobs:
linting_tests:
runs-on: ${{ matrix.operating-systems }}

strategy:
matrix:
operating-systems: [ubuntu-latest]
php-versions: ['8.2', '8.3']
php-versions: ['8.3']

name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-systems }}

steps:
- uses: actions/checkout@v1
- name: Running Pint Test
uses: aglipanci/[email protected]
with:
testMode: true
verboseMode: true
- name: Checkout
uses: actions/checkout@v4

- name: Install Pint
run: composer global require laravel/pint
env:
COMPOSER_HOME: ${{ runner.temp }}/composer

- name: Run Pint
run: ${{ runner.temp }}/composer/vendor/bin/pint

- name: Commit Linted Files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: applied pint changes"
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public function store()

$response = [];

if (request()->get('is_buy_now')) {
if (request()->get('is_buy_now'))
{
Cart::deActivateCart();

$response['redirect'] = route('shop.checkout.onepage.index');
Expand Down

0 comments on commit 0d00ad6

Please sign in to comment.