From d2352b41fb6b5d25cf6ec53b34c9994ceed4f799 Mon Sep 17 00:00:00 2001 From: Felipe Wu Date: Wed, 14 Jan 2026 11:53:29 -0300 Subject: [PATCH] move travis to github actions --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 22 ---------------------- 2 files changed, 34 insertions(+), 22 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 000000000..b3f49f3b4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v6 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + + - name: Cache Composer + uses: actions/cache@v4 + with: + path: | + vendor + ~/.composer/cache + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + + - name: Install dependencies + run: | + composer validate --no-check-all --no-check-publish + composer install --prefer-dist --no-progress --no-interaction + + - name: Run tests + run: ./vendor/bin/phpunit testbench/xlsxwriter.class.Test.php diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4df1a4fc5..000000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -dist: bionic -sudo: required - -language: php - -php: - - 7.4.28 - -install: - - composer validate --no-check-all --no-check-publish - - composer install - -script: ./vendor/bin/phpunit testbench/xlsxwriter.class.Test.php - -after_success: - - bash <(curl -s https://codecov.io/bash) - -cache: - apt: true - directories: - - $TRAVIS_BUILD_DIR/vendor - - $HOME/.composer/cache