diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-17 13:10:27 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-17 13:21:59 +0300 |
commit | 3fea9bbccc1422b0a1adae4a3754623a3aef4607 (patch) | |
tree | 6fc64b15618485609d8695bf42d723c01a9a0424 | |
parent | eb98d28b8c66398237d04ee31475d1f8b12764b8 (diff) |
switch from travis to github actions
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | .github/workflows/phpunit.yml | 35 | ||||
-rw-r--r-- | .travis.yml | 8 |
2 files changed, 35 insertions, 8 deletions
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..9203fae --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,35 @@ +name: PHPUnit + +on: + pull_request: + push: + branches: + - master + +jobs: + php: + runs-on: ubuntu-latest + + strategy: + # do not stop on another job's failure + fail-fast: false + matrix: + php-versions: ['7.2', '7.4', '8.0'] + + name: php${{ matrix.php-versions }} + + steps: + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, iconv, fileinfo, intl + coverage: none + + - name: Checkout server + uses: actions/checkout@v2 + + - name: Run unit tests + run: | + composer install + sh -c "cd tests/unit/ && ../../vendor/bin/phpunit ." diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0225806..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -sudo: false -language: php -php: - - 7.0 - -script: - - composer install - - sh -c "cd tests/unit/ && ../../vendor/bin/phpunit ." |