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
5 changes: 5 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exclude_paths:
- ".github/**"
- "example/**"
- "test/**"

22 changes: 1 addition & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ permissions:

jobs:
composer:
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,6 +38,7 @@ jobs:
with:
name: build-artifact-${{ matrix.php }}
path: /tmp/github-actions
retention-days: 1

phpunit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,21 +168,3 @@ jobs:
php_version: ${{ matrix.php }}
path: src/
standard: phpcs.xml

remove_old_artifacts:
runs-on: ubuntu-latest

permissions:
actions: write

steps:
- name: Remove old artifacts for prior workflow runs on this repository
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
while read id
do
echo -n "Deleting artifact ID $id ... "
gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done"
done <artifact-id-list.txt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Documentation: https://php.gt/docs/config
<a href="https://github.com/PhpGt/Config/actions" target="_blank">
<img src="https://badge.status.php.gt/config-build.svg" alt="Build status" />
</a>
<a href="https://scrutinizer-ci.com/g/PhpGt/Config" target="_blank">
<a href="https://app.codacy.com/gh/PhpGt/Config" target="_blank">
<img src="https://badge.status.php.gt/config-quality.svg" alt="Code quality" />
</a>
<a href="https://scrutinizer-ci.com/g/PhpGt/Config" target="_blank">
<a href="https://app.codecov.io/gh/PhpGt/Config" target="_blank">
<img src="https://badge.status.php.gt/config-coverage.svg" alt="Code coverage" />
</a>
<a href="https://packagist.org/packages/PhpGt/Config" target="_blank">
Expand Down
2 changes: 1 addition & 1 deletion bin/config-generate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php
namespace Gt\Config;
namespace GT\Config;

$autoloadLocations = [
implode(DIRECTORY_SEPARATOR, [__DIR__ , "..", "..", "..", "autoload.php"]),
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@

"autoload": {
"psr-4": {
"GT\\Config\\": "./src",
"Gt\\Config\\": "./src"
}
},
"autoload-dev": {
"psr-4": {
"GT\\Config\\Test\\": "./test/phpunit",
"Gt\\Config\\Test\\": "./test/phpunit"
}
},

"scripts": {
"phpunit": "vendor/bin/phpunit --configuration phpunit.xml",
"phpunit:coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --configuration phpunit.xml --coverage-text",
"phpstan": "vendor/bin/phpstan analyse --level 6 src",
"phpcs": "vendor/bin/phpcs src --standard=phpcs.xml",
"phpmd": "vendor/bin/phpmd src/ text phpmd.xml",
Expand Down
Loading
Loading