From fbebffe69d86997a2651ebc3e8d825a2fc8c2a1e Mon Sep 17 00:00:00 2001 From: Taichi Inaba Date: Wed, 27 May 2020 00:44:55 +0900 Subject: [PATCH] Add GitHub Actions workflow, Remove TravisCI yml --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .travis.yml | 11 ----------- 2 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e8aa2181 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: php-java test +on: push +jobs: + test: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ ubuntu-18.04 ] + php: [ '7.3', '7.4' ] + name: PHP ${{ matrix.php }} + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Setup PHP and Run test + uses: nanasess/setup-php@master + with: + php-version: ${{ matrix.php }} + - run: | + curl -s https://get.sdkman.io | bash + source "${HOME}/.sdkman/bin/sdkman-init.sh" + sdk install kotlin + composer install + composer run tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab0ecd05..00000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: php -php: - - 7.3 - - 7.4 -before_install: - - curl -s https://get.sdkman.io | bash - - source "/home/travis/.sdkman/bin/sdkman-init.sh" - - sdk install kotlin - - composer install -script: - - composer run tests