diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..67f8d85d4 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,25 @@ +name: test + +on: + push: + branches: [ master ] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +jobs: + unit: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: [ '7.4' ] + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: cs2pr, parallel-lint + + - name: Lint sources + run: composer exec --no-interaction -- parallel-lint bin/ contrib/ recipe/ src/ tests/ --checkstyle | cs2pr diff --git a/src/Component/PharUpdate/Update.php b/src/Component/PharUpdate/Update.php index 9b850d411..004d12f81 100644 --- a/src/Component/PharUpdate/Update.php +++ b/src/Component/PharUpdate/Update.php @@ -101,7 +101,7 @@ public function copyTo(string $file): void ); } - $mode = 0o755; + $mode = 0755; if (file_exists($file)) { $mode = fileperms($file) & 511; diff --git a/src/Documentation/DocGen.php b/src/Documentation/DocGen.php index 0e8ee636a..29cebac77 100644 --- a/src/Documentation/DocGen.php +++ b/src/Documentation/DocGen.php @@ -1,4 +1,4 @@ -= 8.0 declare(strict_types=1); diff --git a/tests/legacy/recipe/named_arguments.php b/tests/legacy/recipe/named_arguments.php index 204412185..f0280e916 100644 --- a/tests/legacy/recipe/named_arguments.php +++ b/tests/legacy/recipe/named_arguments.php @@ -1,4 +1,4 @@ -= 8.0 namespace Deployer;