From 8060084694ef61bf5e6e3a2c9e2b42a2601d4db8 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 31 Aug 2020 16:17:59 +0800 Subject: [PATCH] Prepare 6.x branch. --- .github/FUNDING.yml | 4 ++-- .github/workflows/tests.yml | 41 +++++++++++++++++++++++++++++++++++++ README.md | 5 +++-- 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index fe4cb12..b7ee86d 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,12 +1,12 @@ # These are supported funding model platforms github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: crynobone +patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username +liberapay: crynobone issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username custom: ["https://paypal.me/crynobone"] diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..370eaa1 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,41 @@ +name: tests + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + php: [7.4, 7.3] + os: [ubuntu-latest, windows-latest] + + name: PHP${{ matrix.php }} on ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ~/.composer/cache/files + key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick + coverage: none + + - name: Install dependencies + run: | + composer update --prefer-dist --no-interaction --no-suggest + - name: Execute tests + run: vendor/bin/phpunit diff --git a/README.md b/README.md index 3d9994a..2523a8b 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ Messages Component for Laravel and Orchestra Platform Messages Component bring a unified notification support for Laravel and Orchestra Platform. -[![Build Status](https://travis-ci.org/orchestral/messages.svg?branch=master)](https://travis-ci.org/orchestral/messages) +[![Build Status](https://travis-ci.org/orchestral/messages.svg?branch=6.x)](https://travis-ci.org/orchestral/messages) [![Latest Stable Version](https://poser.pugx.org/orchestra/messages/version)](https://packagist.org/packages/orchestra/messages) [![Total Downloads](https://poser.pugx.org/orchestra/messages/downloads)](https://packagist.org/packages/orchestra/messages) [![Latest Unstable Version](https://poser.pugx.org/orchestra/messages/v/unstable)](//packagist.org/packages/orchestra/messages) [![License](https://poser.pugx.org/orchestra/messages/license)](https://packagist.org/packages/orchestra/messages) -[![Coverage Status](https://coveralls.io/repos/github/orchestral/messages/badge.svg?branch=master)](https://coveralls.io/github/orchestral/messages?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/orchestral/messages/badge.svg?branch=6.x)](https://coveralls.io/github/orchestral/messages?branch=6.x) ## Table of Content @@ -31,6 +31,7 @@ Laravel | Messages 5.8.x | 3.8.x 6.x | 4.x 7.x | 5.x + 8.x | 6.x ## Installation