Skip to content

Commit

Permalink
added support for php8 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 18, 2021
1 parent 2eea4d5 commit 2384d30
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 16 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 2384d30

Please sign in to comment.