Skip to content

Commit

Permalink
update github actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Apr 25, 2024
1 parent 5b0077d commit b68ca5a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fix-php-code-style-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fix PHP code style issues

on:
push:
paths:
- "**.php"

permissions:
contents: write

jobs:
php-code-styling:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
11 changes: 4 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Run tests
name: Tests

on:
pull_request:
jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ 8.2 ]
laravel: [ 10 ]

php: [8.2, 8.3]
laravel: [11]
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down Expand Up @@ -48,4 +45,4 @@ jobs:
command: composer update --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/pest
run: composer test

0 comments on commit b68ca5a

Please sign in to comment.