From 769906afe786c1c3013c59b85eae301fec144605 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Tue, 8 Feb 2022 17:55:07 +0200 Subject: [PATCH 1/3] switch build to github actions --- .github/ISSUE_TEMPLATE.md | 14 ++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 7 +++++++ .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 11 ----------- README.md | 2 +- 5 files changed, 54 insertions(+), 12 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..eeb4b83 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,14 @@ +### What steps will reproduce the problem? + +### What is the expected result? + +### What do you get instead? + +### Additional info + +| Q | A +| ------------------------- | --- +| This Package Version | 3.?.? +| Laravel Framework Version | 8.?.? +| PHP version | +| Operating system | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..f4af2f3 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,7 @@ +| Q | A +| ------------- | --- +| Is bugfix? | ✔️/❌ +| New feature? | ✔️/❌ +| Breaks BC? | ✔️/❌ +| Tests pass? | ✔️/❌ +| Fixed issues | comma-separated list of tickets # fixed by the PR, if any \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e2f52a8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build + +on: [push, pull_request] + +jobs: + phpunit: + name: PHP ${{ matrix.php }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: mbstring, pdo, sqlite, pdo_sqlite + tools: composer:v2 + coverage: none + + - name: Install dependencies + run: | + composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi + + - name: Run unit tests + run: vendor/bin/phpunit --verbose --colors=always \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d08ba9f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: php - -php: - - 7.4.0 - - 8.0.0 - -install: - - travis_retry composer install --no-interaction --prefer-source - -script: - - vendor/bin/phpunit diff --git a/README.md b/README.md index 6302729..7af8b42 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Version](https://poser.pugx.org/rap2hpoutre/fast-excel/version?format=flat)](https://packagist.org/packages/rap2hpoutre/fast-excel) [![License](https://poser.pugx.org/rap2hpoutre/fast-excel/license?format=flat)](https://packagist.org/packages/rap2hpoutre/fast-excel) -[![Build Status](https://travis-ci.org/rap2hpoutre/fast-excel.svg?branch=master)](https://travis-ci.org/rap2hpoutre/fast-excel) +[![Build Status](https://github.com/rap2hpoutre/fast-excel/workflows/build/badge.svg)](https://github.com/rap2hpoutre/fast-excel/actions) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rap2hpoutre/fast-excel/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rap2hpoutre/fast-excel/?branch=master) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/bae32d91556e461fb7d0fd93495ec6aa)](https://www.codacy.com/gh/rap2hpoutre/fast-excel/dashboard?utm_source=github.com&utm_medium=referral&utm_content=rap2hpoutre/fast-excel&utm_campaign=Badge_Grade) [![Total Downloads](https://poser.pugx.org/rap2hpoutre/fast-excel/downloads)](https://packagist.org/packages/rap2hpoutre/fast-excel) From 92f05759279348ad69df8c9ffedaa10e3f8bebeb Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Tue, 8 Feb 2022 17:58:37 +0200 Subject: [PATCH 2/3] fix build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2f52a8..68ec18b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + php: ['7.3', '7.4', '8.0', '8.1'] steps: - name: Checkout From 42cc45bc7f1f69c5c4f451b43c2293cc7ca974d8 Mon Sep 17 00:00:00 2001 From: Paul Klimov Date: Tue, 8 Feb 2022 18:02:31 +0200 Subject: [PATCH 3/3] add Spout version to the issue template --- .github/ISSUE_TEMPLATE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index eeb4b83..4d14cdb 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -7,8 +7,9 @@ ### Additional info | Q | A -| ------------------------- | --- +|---------------------------| --- | This Package Version | 3.?.? | Laravel Framework Version | 8.?.? +| Spout Version | 3.?.? | PHP version | | Operating system |