From 84845806f13894c4a118af5a07b34b996c26b4a3 Mon Sep 17 00:00:00 2001 From: Aaron de Mello Date: Thu, 29 Jul 2021 02:02:22 +0000 Subject: [PATCH] Moving from travis to github actions for tests --- .github/workflows/unit-test.yaml | 29 +++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/unit-test.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml new file mode 100644 index 0000000..8a7811e --- /dev/null +++ b/.github/workflows/unit-test.yaml @@ -0,0 +1,29 @@ +name: unit-test + +on: [push] + +jobs: + run: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: ['7.2', '7.3', '7.4', '8.0'] + name: PHP v${{ matrix.php-versions }} + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup PHP + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php-versions }} + + - name: PHP version + run: php -v + + - name: Composer install + run: composer install --dev + + - name: Run tests + run: phpunit --coverage-text \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9ec66a1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: php - -sudo: false - -cache: - directories: - - $HOME/.composer/cache - -php: - - '7.2' - - '7.3' - - '7.4' - - '8.0' - -phpunit: phpunit --coverage-text - -install: - - composer install --dev