Skip to content

Commit eefcdc9

Browse files
split workflow
1 parent 987c505 commit eefcdc9

File tree

4 files changed

+58
-5
lines changed

4 files changed

+58
-5
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/phpstan.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PHPStan Check
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
laravel-tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761
15+
with:
16+
php-version: "8.2"
17+
- uses: actions/checkout@v4
18+
- name: Copy .env
19+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
20+
- name: Install Dependencies
21+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
22+
- name: Generate key
23+
run: php artisan key:generate
24+
- name: phpstan analyse
25+
run: ./vendor/bin/phpstan analyse

.github/workflows/pint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Format Check
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
laravel-tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761
15+
with:
16+
php-version: "8.2"
17+
- uses: actions/checkout@v4
18+
- name: Copy .env
19+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
20+
- name: Install Dependencies
21+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
22+
- name: Generate key
23+
run: php artisan key:generate
24+
- name: pint format
25+
run: ./vendor/bin/pint

.github/workflows/laravel.yml renamed to .github/workflows/run-tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
14+
- uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761
1515
with:
1616
php-version: "8.2"
1717
- uses: actions/checkout@v4
@@ -27,10 +27,6 @@ jobs:
2727
run: |
2828
mkdir -p database
2929
touch database/database.sqlite
30-
- name: phpstan analyse
31-
run: ./vendor/bin/phpstan analyse
32-
- name: pint format
33-
run: ./vendor/bin/pint
3430
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
3531
env:
3632
DB_CONNECTION: sqlite

0 commit comments

Comments
 (0)