Skip to content

Commit

Permalink
Update readme, add missing link to changelog, ignore composer.lock (#18)
Browse files Browse the repository at this point in the history
* Update readme, add missing link to changelog, ignore composer.lock

* Remove lock file

* Update dependencies, fix linting issues
  • Loading branch information
jkniest authored Aug 22, 2023
1 parent 240332c commit 4780588
Show file tree
Hide file tree
Showing 15 changed files with 82 additions and 12,088 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
strategy:
matrix:
php-version: [ 8.1, 8.2 ]
composer-strategy: [ lowest, stable ]

steps:
- name: Set up PHP
Expand All @@ -55,12 +56,12 @@ jobs:
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-
- name: Install dependencies
run: 'composer install --prefer-dist --no-ansi --no-interaction --no-progress --optimize-autoloader'
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'

- name: Run PHPStan
run: './vendor/bin/phpstan analyse --memory-limit=1G'
Expand All @@ -72,6 +73,7 @@ jobs:
strategy:
matrix:
php-version: [ 8.1, 8.2 ]
composer-strategy: [ lowest, stable ]

steps:
- name: Set up PHP
Expand All @@ -87,12 +89,12 @@ jobs:
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-strategy-${{ matrix.composer-strategy }}-
- name: Install dependencies
run: 'composer install --prefer-dist --no-ansi --no-interaction --no-progress --optimize-autoloader'
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'

- name: Run Psalm
run: './vendor/bin/psalm --show-info=false'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/coverage
/public/coverage
/src/Resources/app/storefront/node_modules/
composer.lock
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ bin/console fixture:load:single <name>
bin/console fixture:load:single dummyFixture
```

By default, if you run a single fixture it will ignore all its dependencies. If you want to run the single fixture,
including all dependencies recursively, use the `--with-dependencies` option.

```bash
bin/console fixture:load:single --with-dependencies <name>

# fixture class is named "DummyFixture.php", (it´s case-insensitive)
bin/console fixture:load:single --with-dependencies dummyFixture
```

### Run group
To run a group of fixture, run this command with group name as parameter (specified via **groups()** method). It´s also case-insensitive.

Expand All @@ -101,8 +111,6 @@ bin/console fixture:load:group <name>
```




## Best Practices

### Plugin Development
Expand Down Expand Up @@ -171,8 +179,5 @@ host machine (not in shell):
```


### GitLab pipeline
The GitLab pipeline is already pre-configured. It contains multiple jobs for all linting, static analysis and testing tools.

The pipeline runs all tests for the latest stable Shopware 6 version. But you have several options for the PHPUnit tests:

### Github Actions
The Github actions pipeline is already pre-configured. It contains multiple jobs for all linting, static analysis and testing tools.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"shopware/storefront": "6.3.*|6.4.*|6.5.*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"friendsofphp/php-cs-fixer": "3.23.0",
"phpstan/phpstan": "^1.4",
"vimeo/psalm": "^4.18"
},
Expand Down
Loading

0 comments on commit 4780588

Please sign in to comment.