diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index b027823..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: CI - -on: - push: - branches: [master] - pull_request: - branches: [master] - -permissions: - contents: read - -jobs: - lint: - name: PHP ${{ matrix.php }} lint - runs-on: ubuntu-latest - strategy: - matrix: - php: ['7.1', '7.4', '8.0', '8.1'] - steps: - - uses: actions/checkout@v4 - - - name: Set up PHP ${{ matrix.php }} - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - tools: composer:v2 - - - name: PHP syntax check - run: find . -name '*.php' -not -path './.git/*' -print0 | xargs -0 -n1 php -l - - - name: Validate composer.json - run: composer validate --no-check-all --no-check-publish diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..ef48cd3 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,38 @@ +name: Lint + +# PHP syntax check on the lowest PHP version this extension supports and the +# newest one phpBB 3.3 supports. tests.yml covers PHP 8.2 with phpBB's own +# checks (code sniffer, EPV). +on: + push: + branches: + - master + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + lint: + name: PHP ${{ matrix.php }} lint + runs-on: ubuntu-latest + strategy: + matrix: + php: ['7.4', '8.4'] + steps: + - uses: actions/checkout@v4 + + - name: Set up PHP ${{ matrix.php }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + tools: composer:v2 + + - name: PHP syntax check + run: find . -name '*.php' -not -path './.git/*' -not -path './vendor/*' -print0 | xargs -0 -n1 php -l + + - name: Validate composer.json + run: composer validate --no-check-all --no-check-publish diff --git a/README.md b/README.md index 63278c8..eb313e1 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ See [docs/screenshots](docs/screenshots) for both themes rendered. ## Requirements -* PHP 7.1 or later -* phpBB 3.1.0-RC3 up to (but not including) 3.3 +* PHP 7.4 or later +* phpBB 3.3.19 or later (3.3.x) ## Installation diff --git a/composer.json b/composer.json index 10698e7..f657b78 100644 --- a/composer.json +++ b/composer.json @@ -32,13 +32,13 @@ } ], "require": { - "php": ">=7.1", + "php": ">=7.4", "composer/installers": "^1.0" }, "extra": { "display-name": "Holiday Flare", "soft-require": { - "phpbb/phpbb": ">=3.1.0-RC3,<3.3.*@dev" + "phpbb/phpbb": ">=3.3.19,<4.0.0@dev" }, "version-check": { "host": "www.phpbb.com",