Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
bin/act
.github/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apk add --no-cache zip libzip-dev \
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-install zip \
&& rm -rf /var/lib/apt/lists/* \
&& composer global require symplify/easy-coding-standard phpunit/phpunit pdepend/pdepend:2.10.0 phpmd/phpmd \
&& composer global require symplify/easy-coding-standard:9.4.70 phpunit/phpunit:9.5.10 pdepend/pdepend:2.10.0 phpmd/phpmd:2.10.2 \
&& composer clear-cache \
&& rm -rf /var/cache/* /var/tmp/* /tmp/* /var/lib/apt/lists/* /usr/share/man /var/lib/dpkg/info \
&& ln -s /root/.composer/vendor/bin/ecs /usr/bin \
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Currently there are 2 library that can be use:
---
#### How to use

* Authenticate with github container.
```bash
export CR_PAT=YOUR_TOKEN_WITH_READ_ACCESS_TO_PACKAGES
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
```

* Create ecs.php, if you wanna use ECS, see ecs.php.example.
* Create ruleset.xml, if you want use PHPMD.
* Ecs example:
Expand Down