From bf36b3f0c41ba80e4b612d6f066d5e1946e6dc40 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 11 Sep 2020 09:30:55 +0800 Subject: [PATCH] Add github Signed-off-by: Mior Muhammad Zaki --- .github/ISSUE_TEMPLATE.md | 9 +++++++++ .github/workflows/tests.yml | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/workflows/tests.yml 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