From 1c76608468f4f1e63aafbe29da49352b2141c2b4 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Mon, 24 May 2021 23:10:30 +0800 Subject: [PATCH] =?UTF-8?q?Github=20Actions=20=D1=80=D0=B0=D0=B7=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B8=D1=87=D0=B5=D0=BD=D1=8B=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B2=D0=B5=D1=82=D0=BE=D0=BA=20master=20=D0=B8=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dev.yml | 25 +++++++++++++++++++++++++ .github/workflows/master.yml | 25 +++++++++++++++++++++++++ .github/workflows/tests.yml | 26 -------------------------- composer.lock | 4 ++-- 4 files changed, 52 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/dev.yml create mode 100644 .github/workflows/master.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 0000000..5bdc0de --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,25 @@ +name: Dev build + +on: + push: + branches: [ dev ] + pull_request: + branches: [ dev ] + +jobs: + Tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Validate composer.json and composer.lock + uses: php-actions/composer@40-env + with: + version: 2 + php_version: 7.4 + only_args: --prefer-dist --no-progress + + - name: Run phpunit tests + uses: php-actions/phpunit@v8 + with: + configuration: ./phpunit.xml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..0e0fd58 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,25 @@ +name: Master build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + Tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Validate composer.json and composer.lock + uses: php-actions/composer@40-env + with: + version: 2 + php_version: 7.4 + only_args: --prefer-dist --no-progress + + - name: Run phpunit tests + uses: php-actions/phpunit@v8 + with: + configuration: ./phpunit.xml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 89dbfaa..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build - -on: - push: - branches: - - master - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install composer dependencies - run: composer install --prefer-dist --no-progress --no-suggest - - - name: Run phpunit tests - uses: php-actions/phpunit@v1.0.0 - with: - # Configuration file location - config: ./phpunit.xml diff --git a/composer.lock b/composer.lock index 240d405..47340ed 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "20b642fe60192cf1e67c9aa8dca27440", + "content-hash": "5e1b55b0c481ba8d05be29bf5310f5ef", "packages": [ { "name": "guzzlehttp/guzzle", @@ -2526,7 +2526,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.2", + "php": ">=7.4", "ext-json": "*" }, "platform-dev": [],