From 6bed9b66fa15deb8417e2c0086e073c64157f38b Mon Sep 17 00:00:00 2001 From: Andre Polykanine Date: Sat, 16 Jul 2022 20:13:03 +0200 Subject: [PATCH] Move from Travis to Github Actions for CI (#2) --- .github/dependabot.yml | 11 +++++++++++ .github/release.yml | 16 ++++++++++++++++ .github/workflows/run-tests.yml | 30 ++++++++++++++++++++++++++++++ .gitignore | 1 + .travis.yml | 18 ------------------ 5 files changed, 58 insertions(+), 18 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/release.yml create mode 100644 .github/workflows/run-tests.yml delete mode 100644 .travis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7575cd6 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: composer + directory: "/" + schedule: + interval: daily + time: "04:00" + timezone: "Europe/Berlin" + open-pull-requests-limit: 10 + pull-request-branch-name: + separator: "-" diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..191f245 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,16 @@ +changelog: + exclude: + labels: + - ignore-for-release + authors: + - dependabot + categories: + - title: Breaking Changes 🛠 + labels: + - breaking-change + - title: New Features 🎉 + labels: + - enhancement + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..ae4d3cb --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,30 @@ +name: Run tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest, windows-latest] + php: [7.4] + stability: [prefer-lowest, prefer-stable] + + name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Install dependencies + run: composer install + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index a3767a3..9274d28 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ vendor atlassian-ide-plugin.xml composer.lock build/ +phpunit.xml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5216e48..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: php -sudo: false -php: - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - nightly - -matrix: - allow_failures: - - php: nightly - -before_script: - - composer install - -script: - - vendor/bin/phpunit