From b1ce569303427070832819ad89fe757e3d29e998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hiraux=20H=C3=A9l=C3=A9na?= Date: Tue, 4 Jan 2022 15:01:31 +0100 Subject: [PATCH] feat: update ci & codeowners --- .github/CODEOWNERS | 1 + .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 21 --------------------- 3 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f604417 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @BedrockStreaming/messagequeuing diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..66923a8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Continuous Integration +on: [push] + +jobs: + tests: + name: Tests + runs-on: ubuntu-20.04 + strategy: + matrix: + php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] + symfony-version: ['^4.4', '^5.0'] + steps: + - uses: actions/checkout@master + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: xdebug2 + - name: Install symfony version from matrix + env: + SYMFONY_VERSION: ${{ matrix.symfony-version }} + run: composer require symfony/symfony:$SYMFONY_VERSION --no-update + - name: Install dependencies + run: composer update --prefer-dist --no-interaction + - name: Unit tests + run: vendor/bin/phpunit tests/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f54d436..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: php - -php: - - 7.2 - -env: - matrix: - - SYMFONY_VERSION="~4.4" - - SYMFONY_VERSION="~5.0" - -before_install: - - wget http://getcomposer.org/composer.phar - - php composer.phar require "symfony/console:${SYMFONY_VERSION}" --no-update - - php composer.phar require "symfony/framework-bundle:${SYMFONY_VERSION}" --no-update - - php composer.phar require "symfony/yaml:${SYMFONY_VERSION}" --no-update - -install: - - php composer.phar update --prefer-source --no-interaction - -script: - - vendor/bin/phpunit tests/