From 3a368d76686683d73c3463c7d051c12664f54ad2 Mon Sep 17 00:00:00 2001 From: Kieran Date: Sat, 22 May 2021 01:46:13 +0100 Subject: [PATCH] Switch to GitHub Actions (#293) --- .gitattributes | 2 +- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- 3 files changed, 36 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.gitattributes b/.gitattributes index 4c528011..7542171d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,6 @@ /.gitattributes export-ignore +/.github export-ignore /.gitignore export-ignore -/.travis.yml export-ignore /art export-ignore /benchmarks export-ignore /configdoc export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b95f9a4e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: ci + +on: + push: + branches: + - "master" + pull_request: + +jobs: + linux_tests: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4] + + name: PHP ${{ matrix.php }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Clone simpletest + run: git clone --depth=50 https://github.com/ezyang/simpletest.git + + - name: Configure simpletest + run: cp test-settings.travis.php test-settings.php + + - name: Execute Unit tests + run: php tests/index.php diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b44c52a9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: php -php: - - '5.6' - - '7.0' - - '7.1' - - '7.2' - - '7.3' - - '7.4' -matrix: - include: - - php: '5.4' - dist: trusty - - php: '5.5' - dist: trusty -before_script: - - git clone --depth=50 https://github.com/ezyang/simpletest.git - - cp test-settings.travis.php test-settings.php -script: - - php tests/index.php