Skip to content

Commit

Permalink
Run tests on Github CI and remove Travis CI (#201)
Browse files Browse the repository at this point in the history
* Run tests on Github CI and remove Travis CI

* allow newer PHPUnit
  • Loading branch information
mmoll authored Sep 30, 2024
1 parent 93b9a10 commit 6ed3406
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: MO4 Coding Standard CI
on:
pull_request:
push:
jobs:
run-tests:
strategy:
matrix:
php_version:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: '~/.cache/composer'
key: "cache-composer-${{ hashFiles('composer.json') }}"
restore-keys: 'cache-composer-'
- name: Run composer
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run tests
run: ant test -Dcomposer.path=composer
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cache.properties
phpunit.xml
.phpunit.result.cache
composer.lock
composer.phar
vendor/
Expand Down
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"squizlabs/php_codesniffer": "^3.3.1"
},
"require-dev": {
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0"
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
},
"conflict": {
"squizlabs/php_codesniffer": "<3 || >=4"
Expand Down

0 comments on commit 6ed3406

Please sign in to comment.