Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
matiux committed Sep 20, 2022
2 parents e82e0b1 + c7d9c62 commit 71b9615
Show file tree
Hide file tree
Showing 24 changed files with 550 additions and 696 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
${{ runner.os }}-php-
- name: Install dependencies
run: ./tools/bin/project install_dependencies
run: composer install --prefer-dist --no-progress
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
extensions: bcmath, mbstring, intl, sodium, json

- name: Install dependencies
run: ./tools/bin/project install_dependencies
run: composer install --prefer-dist --no-progress

- name: "coding-standard-check"
run: ./tools/bin/project coding-standard-fix-all
2 changes: 1 addition & 1 deletion .github/workflows/security-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
extensions: bcmath, mbstring, intl, sodium, json

- name: Install dependencies
run: ./tools/bin/project install_dependencies
run: composer install --prefer-dist --no-progress

- name: "running security analysis ( psalm )"
run: ./tools/bin/project security-analysis
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
extensions: bcmath, mbstring, intl, sodium, json

- name: Install dependencies
run: ./tools/bin/project install_dependencies
run: composer install --prefer-dist --no-progress

- name: "running static analysis"
run: ./tools/bin/project psalm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: "actions/checkout@v2"

- name: Install dependencies
run: ./tools/bin/project install_dependencies
run: composer install --prefer-dist --no-progress

- name: Create Schema
run: ./tools/bin/project schema-create
Expand Down
27 changes: 6 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,18 @@ git clone https://github.com/matiux/broadway-sensitive-serializer-bundle.git &&
cp docker/docker-compose.override.dist.yml docker/docker-compose.override.yml
rm -rf .git/hooks && ln -s ../scripts/git-hooks .git/hooks
```

### Interact with the PHP container
This is a bash script that wrap major docker-compose function. You can find it [here](./docker/dc.sh) and there is a symbolic link in project root.

Some uses:
```shell
./dc up -d
./dc enter
./dc phpunit
./dc psalm
./dc coding-standard-fix-staged
./dc build php --no-cache
```
Check out [here](./docker/dc.sh) for all the options.

### Install dependencies to run test or execute examples
```shell
./dc up -d
./dc enter
composer install
make build-php ARG="--no-cache"
make upd
make composer ARG="install"
```

### Run test
```shell
./dc up -d
./dc enter
project phpunit
make build-php ARG="--no-cache"
make upd
make phpunit
```

### Whole Strategy configuration
Expand Down
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.1",
"matiux/php-project-autopilot": "dev-master",
"matthiasnoback/symfony-dependency-injection-test": "^4.3",
"mockery/mockery": "^1.4",
"phpunit/phpunit": "^9.5",
Expand Down Expand Up @@ -58,5 +59,13 @@
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"bash vendor/matiux/php-project-autopilot/src/configure.sh"
],
"post-update-cmd": [
"bash vendor/matiux/php-project-autopilot/src/configure.sh"
]
}
}
Loading

0 comments on commit 71b9615

Please sign in to comment.