diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f3b6956 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +/.github export-ignore +/tests export-ignore +/phpunit.xml export-ignore diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..10d4b36 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,26 @@ +name: PHPUnit + +on: + pull_request: + push: + +permissions: + contents: read + +jobs: + build: + name: PHPUnit + runs-on: ubuntu-latest + strategy: + matrix: + php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + steps: + - uses: actions/checkout@v4 + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + - name: Composer install + run: composer install + - name: PHPUnit / PHP ${{ matrix.php-version }} + run: ./vendor/bin/phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 90faed6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: php - -php: - - 8.0 - - 8.1 - - 8.2 - - 8.3 - -sudo: false -dist: jammy - -matrix: - include: - - php: 7.2 - dist: xenial - - php: 7.3 - dist: bionic - - php: 7.4 - dist: focal - -before_script: - - composer install - - vendor/bin/phpunit diff --git a/README.md b/README.md index 0523003..7383813 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Component providing several adapters to decompress files. -[![Build Status](https://travis-ci.com/matomo-org/component-decompress.svg?branch=master)](https://travis-ci.com/matomo-org/component-decompress) +[![PHPUnit](https://github.com/matomo-org/component-decompress/actions/workflows/phpunit.yml/badge.svg)](https://github.com/matomo-org/component-decompress/actions/workflows/phpunit.yml) It supports the following compression formats: @@ -93,4 +93,4 @@ if ($extractedFiles === 0) { ## License -The Decompress component is released under the [LGPL v3.0](http://choosealicense.com/licenses/lgpl-3.0/). +The Decompress component is released under the [LGPL v3.0](https://choosealicense.com/licenses/lgpl-3.0/).