-
Notifications
You must be signed in to change notification settings - Fork 1
Docs for main branch #4
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
Changes from 4 commits
f587a95
7dd4a00
f339704
41a07ca
a15b718
3ef0921
6dc0a27
e74abe6
d8ef334
bee975f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: "Continuous Integration" | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| tags: | ||
|
|
||
| jobs: | ||
| ci: | ||
| uses: laminas/workflow-continuous-integration/.github/workflows/[email protected] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| on: | ||
| - push | ||
|
|
||
| name: Run PHPStan checks | ||
|
|
||
| jobs: | ||
| mutation: | ||
| name: PHPStan ${{ matrix.php }}-${{ matrix.os }} | ||
|
|
||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| strategy: | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
|
|
||
| php: | ||
| - "8.2" | ||
| - "8.3" | ||
| - "8.4" | ||
| - "8.5" | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: "${{ matrix.php }}" | ||
| coverage: pcov | ||
| ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On | ||
| tools: composer:v2, cs2pr | ||
|
|
||
| - name: Determine composer cache directory | ||
| run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | ||
|
|
||
| - name: Cache dependencies installed with composer | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ env.COMPOSER_CACHE_DIR }} | ||
| key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} | ||
| restore-keys: | | ||
| php${{ matrix.php }}-composer- | ||
| - name: Install dependencies with composer | ||
| run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | ||
|
|
||
| - name: Run static analysis with PHPStan | ||
| run: vendor/bin/phpstan analyse | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,19 +4,7 @@ | |||||||
|
|
||||||||
| The first step is to add alongside your current packages the required entries for our Doctrine installation. We would add the following to our `composer.json` file located in our root folder: | ||||||||
|
||||||||
| The first step is to add alongside your current packages the required entries for our Doctrine installation. We would add the following to our `composer.json` file located in our root folder: | |
| The first step is to add alongside your current packages the required entries for our Doctrine installation. | |
| We would add the following to our `composer.json` file located in our root folder: |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In our case we will create it as `/bin/doctrine` | |
| In our case we will create a `doctrine` file inside the application's `bin` directory: |
Rephrased to avoid confusion with the OS's bin directory - especially since you started the path with a leading /.
If you have a better rephrasing, go with it - as long as it clearly states which bin directory you are referring to.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| (Optional) To keep things tidy we recommend to make an executable for the migrations of Doctrine as well for example `/bin/doctrine-migrations`: | |
| (Optional) To keep things tidy, we recommend making an executable for the migrations of Doctrine as well. | |
| For this, we create `doctrine-migrations` file inside the application's `bin` directory: |
Same reason as with the above rephrasing.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../README.md |
|
This file was deleted.
alexmerlin marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,4 +13,4 @@ site_name: 101.dotkernel | |||||
| site_description: "Beginner tutorial for using Dotkernel" | ||||||
| repo_url: "https://github.com/dotkernel/tutorial-101#" | ||||||
|
||||||
| repo_url: "https://github.com/dotkernel/tutorial-101#" | |
| repo_url: "https://github.com/dotkernel/tutorial-101" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.