diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..eb4d8ee --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,9 @@ +- BotMan Version: #.#.# +- PHP Version: +- Messaging Service(s): +- Cache Driver: + +### Description: + + +### Steps To Reproduce: \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d017f1e --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,40 @@ +name: 'Laravel Tests' + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + tests-on-php71: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: [7.4, 7.3, 7.2, 7.1] + + name: PHP${{ matrix.php }} + + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.composer/cache/files + key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath + coverage: none + + - name: Install dependencies + run: | + composer install --prefer-dist --no-interaction --no-suggest + - name: Execute tests + run: vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index fb0edf3..b246b7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ +.discovery/ .idea/ .DS_Store composer.lock .php_cs.cache -/vendor/ \ No newline at end of file +/vendor/ diff --git a/.styleci.yml b/.styleci.yml index 6034ad4..1ef9935 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,4 +1,4 @@ preset: laravel enabled: -- unalign_double_arrow \ No newline at end of file + - unalign_double_arrow diff --git a/.travis.yml b/.travis.yml index e863e8a..9385375 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,12 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4 before_script: - travis_retry composer self-update --preview - - travis_retry composer install --prefer-dist --no-interaction + - travis_retry composer install --prefer-dist --no-interaction --ignore-platform-req=composer-plugin-api script: - vendor/bin/phpunit --coverage-clover=coverage.xml @@ -17,4 +19,4 @@ before_install: - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini after_success: - - codecov \ No newline at end of file + - codecov diff --git a/composer.json b/composer.json index fd1e677..281d1b8 100644 --- a/composer.json +++ b/composer.json @@ -21,10 +21,10 @@ "botman/botman": "~2.1|~3.0" }, "require-dev": { - "botman/studio-addons": "~1.0", - "phpunit/phpunit": "~5.0", - "illuminate/contracts": "~5.5.0", - "mockery/mockery": "dev-master", + "botman/studio-addons": "^1.0", + "phpunit/phpunit": "^5.0", + "illuminate/contracts": "^5.5", + "mockery/mockery": "^1.0", "ext-curl": "*" }, "autoload": {