diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..bcdfeba --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,46 @@ +name: "testing" + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + tests: + name: Tests + runs-on: ubuntu-latest + + strategy: + matrix: + php: + - 7.2 + - 7.3 + - 7.4 + composer-args: [ "" ] + include: + - php: 8.0 + composer-args: --ignore-platform-reqs + fail-fast: false + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Cache PHP dependencies + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer- + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest ${{ matrix.composer-args }} + + - name: Tests + run: composer test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b0fa008..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php -sudo: false - -php: - - 7.2 - - 7.3 - -before_install: - - composer install - -script: - - composer test diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e6f13c..ff55ed4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.1] - Unreleased +### Fixed +- Support for PHP 8 [#1] + ## [1.1.0] - 2020-05-23 ### Removed - Function `_` in the list of default functions to scan @@ -15,4 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## 1.0.0 - 2019-11-05 First version +[#1]: https://github.com/php-gettext/JS-Scanner/issues/1 + +[1.1.1]: https://github.com/php-gettext/JS-Scanner/compare/v1.1.0...HEAD [1.1.0]: https://github.com/php-gettext/JS-Scanner/compare/v1.0.0...v1.1.0 diff --git a/README.md b/README.md index 682ba55..84bd4fc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE) -[![Build Status][ico-travis]][link-travis] +![Build Status][ico-ga] [![Quality Score][ico-scrutinizer]][link-scrutinizer] [![Total Downloads][ico-downloads]][link-downloads] @@ -52,11 +52,10 @@ The MIT License (MIT). Please see [LICENSE](LICENSE) for more information. [ico-version]: https://img.shields.io/packagist/v/gettext/js-scanner.svg?style=flat-square [ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square -[ico-travis]: https://img.shields.io/travis/php-gettext/JS-Scanner/master.svg?style=flat-square +[ico-ga]: https://github.com/php-gettext/PHP-Scanner/workflows/testing/badge.svg [ico-scrutinizer]: https://img.shields.io/scrutinizer/g/php-gettext/JS-Scanner.svg?style=flat-square [ico-downloads]: https://img.shields.io/packagist/dt/gettext/js-scanner.svg?style=flat-square [link-packagist]: https://packagist.org/packages/gettext/js-scanner -[link-travis]: https://travis-ci.org/php-gettext/JS-Scanner [link-scrutinizer]: https://scrutinizer-ci.com/g/php-gettext/JS-Scanner [link-downloads]: https://packagist.org/packages/gettext/js-scanner diff --git a/composer.json b/composer.json index 581567c..9e96c8b 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "issues": "https://github.com/php-gettext/JS-Scanner/issues" }, "require": { - "php": "^7.2", + "php": "^7.2|^8.0", "gettext/gettext": "^5.5.0", "mck89/peast": "^1.9" },