From 21e93c8a2fcf4288f3175f490b512822d845fb41 Mon Sep 17 00:00:00 2001 From: Evelyn <41946743+EyelynSu@users.noreply.github.com> Date: Tue, 12 Jan 2021 10:26:46 +0800 Subject: [PATCH 1/2] Create main.yml Replace Travis CI --- .github/workflows/main.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..653cd49 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +name: Build + +on: [push, pull_request, workflow_dispatch] + +jobs: + php7-1: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: MilesChou/composer-action/7.1@master + with: + args: install --no-interaction --no-suggest + - run: + vendor/bin/phpunit --configuration PHPUnit.xml --testsuit pinpoint --testdox + + php7-2: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: MilesChou/composer-action/7.2@master + with: + args: install --no-interaction --no-suggest + - run: + vendor/bin/phpunit --configuration PHPUnit.xml --testsuit pinpoint --testdox + + php7-3: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: MilesChou/composer-action/7.3@master + with: + args: install --no-interaction --no-suggest + - run: + vendor/bin/phpunit --configuration PHPUnit.xml --testsuit pinpoint --testdox + php7-4: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: MilesChou/composer-action/7.4@master + with: + args: install --no-interaction --no-suggest + - run: + vendor/bin/phpunit --configuration PHPUnit.xml --testsuit pinpoint --testdox From 8d79d656e4881ced4cc884ded3562b166c534458 Mon Sep 17 00:00:00 2001 From: Evelyn <41946743+EyelynSu@users.noreply.github.com> Date: Tue, 12 Jan 2021 10:36:43 +0800 Subject: [PATCH 2/2] Delete .travis.yml Use Github Action instead of Travis CI --- .travis.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2a75e4e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -php: - - 7.1 - - 7.2 - - 7.3 - - 7.4 - -install: -- travis_retry composer install --no-interaction --no-suggest - -script: -- vendor/bin/phpunit --configuration PHPUnit.xml --testsuit pinpoint --testdox \ No newline at end of file