From fe771886d9aa46b1c6c4c351ff3b97a6a7a9a82a Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 7 Feb 2022 22:10:11 +0100 Subject: [PATCH] Replace Travis with GitHub actions travis-ci.org does not run tests anymore --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 24 insertions(+), 12 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..d9a62ad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +--- +name: Tests +on: + - push + - pull_request +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + php-version: + - '7.3' + - '7.4' + steps: + - uses: actions/checkout@v2 + - name: Use PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + tools: composer + - run: composer install --no-progress + - run: composer check-platform-reqs + - run: composer lint + - run: composer test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 02d0a2b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -language: php -php: 7.3 -addons: - apt: - packages: - - language-pack-fr -install: composer install --no-progress -script: - - composer check-platform-reqs - - composer lint - - composer test