Skip to content

Commit 2aaa8fc

Browse files
committed
CI/CD
1 parent 9065ca2 commit 2aaa8fc

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/feature-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up PHP & Composer
4848
uses: shivammathur/setup-php@v2
4949
with:
50-
php-version: 8.3
50+
php-version: 8.4
5151
extensions: mbstring, pdo, mysql, bcmath, tokenizer
5252
tools: composer
5353

.github/workflows/review-dog.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Laravel Pint Code Review
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.php'
7+
8+
jobs:
9+
reviewdog:
10+
name: Laravel Pint Review
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.4'
21+
tools: composer
22+
extensions: mbstring, dom, curl
23+
24+
- name: Install Dependencies
25+
run: composer install --no-interaction --no-progress --prefer-dist
26+
27+
- name: Install Pint
28+
run: composer global require laravel/pint
29+
30+
- name: Run Pint with ReviewDog
31+
env:
32+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
~/.composer/vendor/bin/pint --test --format=checkstyle \
35+
| npx reviewdog -f=checkstyle \
36+
-name="Laravel Pint" \
37+
-reporter=github-pr-review \
38+
-fail-on-error=false \
39+
-level=info

0 commit comments

Comments
 (0)