Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #1

Merged
merged 3 commits into from
Jan 17, 2024
Merged

GitHub actions #1

merged 3 commits into from
Jan 17, 2024

Conversation

philbates35
Copy link
Owner

@philbates35 philbates35 commented Jan 17, 2024

There is definitely room for improvement here (e.g. script duplication across jobs, passing artifacts from one job to the next, caching dependencies etc) but this is a simple starting point.

This is so that we can introduce the dependency on Vite assets
to have been build before running phpunit, so we can ensure
that the GitHub actions workflow takes this into account.
So that we don't have to have the dev server running, or have
built assets previously, before running tests.
@philbates35 philbates35 force-pushed the github-actions branch 6 times, most recently from c2fdbf6 to 45de9ec Compare January 17, 2024 09:28
There is definitely room for improvement here (e.g. script duplication
across jobs, passing artifacts from one job to the next, caching
dependencies etc) but this is a simple starting point.
@philbates35 philbates35 force-pushed the github-actions branch 2 times, most recently from 45ffc23 to 245d7e1 Compare January 17, 2024 09:37
@philbates35 philbates35 merged commit 4a87e32 into main Jan 17, 2024
16 checks passed
@philbates35 philbates35 deleted the github-actions branch January 17, 2024 09:41
philbates35 added a commit that referenced this pull request Feb 9, 2024
See:
* https://phpstan.org/blog/what-is-bleeding-edge
* https://backendtea.com/post/use-phpstan-bleeding-edge/

Fix the following three new highlighted issues at the same time:

[philbates@fedora laravel-starter]$ docker-compose exec php composer run phpstan -- --memory-limit=512M
> phpstan --ansi '--memory-limit=512M'
Note: Using configuration file /app/phpstan.neon.dist.
 50/50 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Line   app/Models/User.php
 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  35     PHPDoc type array<int, string> of property App\Models\User::$hidden is not the same as PHPDoc type list<string> of overridden property Illuminate\Database\Eloquent\Model::$hidden.
         💡 You can fix 3rd party PHPDoc types with stub files:
         💡 https://phpstan.org/user-guide/stub-files

 ------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 ------ -------------------------------------------------------------------------------------------
  Line   app/Providers/RouteServiceProvider.php
 ------ -------------------------------------------------------------------------------------------
  33     Using nullsafe property access "?->id" on left side of ?? is unnecessary. Use -> instead.
 ------ -------------------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------------------------------
  Line   bootstrap/app.php
 ------ -----------------------------------------------------------------------------------------------------------------
  17     Parameter #1 $basePath of class Illuminate\Foundation\Application constructor expects string|null, mixed given.
 ------ -----------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant