From 1d7ed3c4468daa04b7215846a1c139eeeabccc8a Mon Sep 17 00:00:00 2001 From: Michael O'Connell Date: Fri, 22 Mar 2024 09:34:17 -0500 Subject: [PATCH] replace travis with github action --- .github/workflows/php.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 11 ----------- README.md | 3 --- 3 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/php.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..90bf8f9 --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,36 @@ +name: PHP Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + php: [ 8.1, 8.2, 8.3 ] + + steps: + - uses: actions/checkout@v4 + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v4 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run test suite + run: composer run-script test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 809a228..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: php -php: - - 8.0 - - 8.1 -install: - - composer install -script: - - mkdir -p build/logs - - vendor/bin/phpunit --coverage-clover build/logs/clover.xml -after_script: - - vendor/bin/coveralls -v diff --git a/README.md b/README.md index 0a5f349..fcec82b 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,6 @@ Croute ====== [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.txt) -[![Build Status](https://api.travis-ci.org/thewunder/croute.svg?branch=master)](https://travis-ci.org/thewunder/croute) -[![Coverage Status](https://img.shields.io/coveralls/thewunder/croute.svg)](https://coveralls.io/r/thewunder/croute) -[![SensioLabsInsight](https://insight.sensiolabs.com/projects/11efe3a2-9566-4904-8e40-0d69efed7b02/mini.png)](https://insight.sensiolabs.com/projects/11efe3a2-9566-4904-8e40-0d69efed7b02) Convention based routing for PHP based on Symfony components.