diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 00000000..40f440be --- /dev/null +++ b/.github/workflows/unit.yml @@ -0,0 +1,31 @@ +name: PHP Unit CI +on: + push: + branches: + - master + pull_request: +jobs: + build: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: ['7.2', '7.3', '7.4'] + name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Uses PHP ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + - name: Install Dependencies + uses: nick-invision/retry@v1 + with: + timeout_minutes: 10 + max_attempts: 3 + command: composer install --prefer-dist --no-interaction + - name: Run phpunit + run: mkdir -p build/logs && ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml + - name: Run coveralls + run: ./vendor/bin/coveralls -v diff --git a/composer.json b/composer.json index 8cdb48b6..81abcebd 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "php": ">=5.4.0" }, "require-dev": { - "mikey179/vfsStream": "~1", "phpunit/phpunit": "4.6.*", "satooshi/php-coveralls": "dev-master" },