Skip to content

Commit 96c293b

Browse files
authored
fix(LAR-66): Laravel notification pending articles (#157)
Co-authored-by: mckenziearts <[email protected]>
1 parent aca5e45 commit 96c293b

File tree

120 files changed

+2307
-3463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2307
-3463
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
custom: https://laravel.cm/sponsors
2+
github: mckenziearts
23

.github/actions/setup/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI Setup
2+
description: "Sets up the environment for jobs during CI workflow"
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: 🐘 Setup PHP
8+
uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: "8.2"
11+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick
12+
tools: composer:v2
13+
coverage: none
14+
- name: ℹ Setup Problem Matches
15+
shell: sh
16+
run: |
17+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
18+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
19+
- name: 🗂 Get composer cache directory
20+
id: composer-cache
21+
shell: sh
22+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
23+
- name: Cache dependencies
24+
uses: actions/cache@v3
25+
with:
26+
path: ${{ steps.composer-cache.outputs.dir }}
27+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
28+
restore-keys: ${{ runner.os }}-composer-

.github/workflows/coding-standards.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/phpstan.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/quality.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
pint:
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- name: 👀 Checkout
19+
uses: actions/checkout@v3
20+
- name: 🪄 Setup
21+
uses: ./.github/actions/setup
22+
- name: 🔮 Install Composer Dependencies
23+
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
24+
- name: 🕵️‍♂️ Run Laravel Pint
25+
run: composer lint -- --test
26+
27+
phpstan:
28+
runs-on: ubuntu-22.04
29+
steps:
30+
- name: 👀 Checkout
31+
uses: actions/checkout@v3
32+
- name: 🪄 Setup
33+
uses: ./.github/actions/setup
34+
- name: 🔮 Install Composer Dependencies
35+
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
36+
- name: 🕵️‍♂️ Run PHPStan
37+
run: composer test:phpstan -- --ansi --no-interaction --no-progress --error-format=github
38+
39+
composer:
40+
runs-on: ubuntu-22.04
41+
steps:
42+
- name: 👀 Checkout
43+
uses: actions/checkout@v3
44+
- name: 🪄 Setup
45+
uses: ./.github/actions/setup
46+
- name: 🕵️‍♂️ Run Composer Validate
47+
run: composer validate
48+
- name: 🕵️‍♂️ Run Composer Audit
49+
run: composer audit

.github/workflows/tests.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
413

514
jobs:
6-
tests:
7-
runs-on: ubuntu-latest
15+
pest:
16+
runs-on: ubuntu-22.04
817

918
steps:
10-
- name: Checkout code
19+
- name: 👀 Checkout
1120
uses: actions/checkout@v4
12-
13-
- name: Setup PHP
14-
uses: shivammathur/setup-php@v2
15-
with:
16-
php-version: 8.2
17-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
18-
tools: composer:v2
19-
coverage: none
20-
21-
- name: Install Composer dependencies
22-
run: composer install --prefer-dist --no-interaction
23-
24-
- name: Execute tests
25-
run: composer pest
21+
- name: 🪄 Setup
22+
uses: ./.github/actions/setup
23+
- name: 🔮 Install Composer Dependencies
24+
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
25+
- name: 🧶 Install Node Dependencies
26+
run: yarn install --frozen-lockfile --no-progress
27+
- name: 🧱 Build JS Dependencies
28+
run: yarn build
29+
- name: 🕵️‍♂️ Run Pest Tests
30+
run: composer test:pest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ composer.phar
1515

1616
# Laravel Exclude
1717
#
18+
.phpunit.cache
1819
.phpunit.result.cache
1920
/public/build
2021
/public/**/filament

Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/Actions/Fortify/UpdateUserPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function update(User $user, array $input): void
1919
'current_password' => ['required', 'string'],
2020
'password' => $this->passwordRules(),
2121
])->after(function ($validator) use ($user, $input): void {
22-
if ( ! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
22+
if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
2323
$validator->errors()->add('current_password', __('Le mot de passe fourni ne correspond pas à votre mot de passe actuel.'));
2424
}
2525
})->validateWithBag('updatePassword');

app/Console/Commands/Cleanup/DeleteOldUnverifiedUsers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function handle(): void
2626

2727
if ($users->isNotEmpty()) {
2828
foreach ($users as $user) {
29-
$user->notify((new SendEMailToDeletedUser())->delay(now()->addMinutes(5)));
29+
$user->notify((new SendEMailToDeletedUser)->delay(now()->addMinutes(5)));
3030
}
3131
}
3232

0 commit comments

Comments
 (0)