Skip to content

Commit

Permalink
CI action for PHP client tests (google#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
echeran committed May 28, 2021
1 parent 4bc42d9 commit 8b65741
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/mynmr_tools_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,37 @@ jobs:
cd clients/java
mvn compile
mvn test
# PHP Client (minimum PHP version)
php-min-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with min version
uses: shivammathur/setup-php@v2
with:
php-version: '7.0'
- uses: "ramsey/composer-install@v1"
- run: ./vendor/bin/phpunit --configuration clients/php/phpunit.xml

# PHP Client (latest PHP v7 version)
#
# Note: PHP v8+ not supported. Error output for v8:
#
# phpunit/phpunit[6.0.0, ..., 6.5.14] require php ^7.0 -> your php version (8.0.5) does not satisfy that requirement.
# Root composer.json requires phpunit/phpunit ^6 -> satisfiable by phpunit/phpunit[6.0.0, ..., 6.5.14].
#
php-latest-v7-version:
name: PHP latest v 7.x version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with the latest version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- uses: "ramsey/composer-install@v1"
- run: ./vendor/bin/phpunit --configuration clients/php/phpunit.xml

# JavaScript Client (latest Node version)
javascript-latest-test:
Expand Down

0 comments on commit 8b65741

Please sign in to comment.