From 6a883c750bee1b1aa400a18602cbe285971b65fa Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Fri, 19 Mar 2021 11:33:20 -0700 Subject: [PATCH] Switch from Travis-CI to GitHub Actions (#20) --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 29 insertions(+), 20 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 0000000..5c17cfe --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +--- +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] + + steps: + - uses: actions/checkout@v2 + - name: Set up PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + extensions: sqlite + ini-values: include_path=.:/usr/share/php + - name: Run tests + run: | + pear run-tests -d tests/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 475d1a5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: php -matrix: - fast_finish: true - allow_failures: - - php: nightly - include: - - php: 5.4.45 - dist: trusty - - php: 5.5.38 - dist: trusty - - php: 5.6 - - php: 7.0 - - php: 7.1 - - php: 7.2 - - php: 7.3 - - php: 7.4 - - php: nightly -install: - - pear install package.xml -script: pear run-tests tests/