Skip to content

Commit

Permalink
MISC: add scripts to composer.json
Browse files Browse the repository at this point in the history
MISC: exclude DTOs from coverage
MISC: tell GH actions to use C2
  • Loading branch information
yivi committed Dec 29, 2021
1 parent 099dcfb commit 89214d6
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 129 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bundle_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2

- name: install test tools
run: composer bin all install
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/vendor-bin/**/vendor
/vendor-bin/**/composer.lock binary
.idea/
coverage.html
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
],
"psalm": "vendor-bin/static/vendor/vimeo/psalm/psalm",
"test": "vendor-bin/testing/vendor/phpunit/phpunit/phpunit",
"coverage": "vendor-bin/testing/vendor/phpunit/phpunit",
"test-pretty": "vendor-bin/testing/vendor/phpunit/phpunit/phpunit --testdox"
}
}
6 changes: 6 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@
<include>
<directory suffix=".php">src</directory>
</include>

<exclude>
<directory>src/Event</directory>
<directory>src/Exception</directory>
</exclude>

</coverage>
</phpunit>
1 change: 0 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<ignoreFiles>
<file name="src/DependencyInjection/BundleConfiguration.php"/>
<file name="vendor/bin/psalm"/>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
</psalm>
60 changes: 30 additions & 30 deletions vendor-bin/csfixer/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 89214d6

Please sign in to comment.