From fbdff53b04331c5598d99d1ef37ec3e13d7c40e5 Mon Sep 17 00:00:00 2001 From: Clemens Krack Date: Tue, 26 May 2020 10:24:33 +0200 Subject: [PATCH] ci(github-actions): Setup CI --- .github/workflows/qa.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/qa.yml diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml new file mode 100644 index 0000000..eae4762 --- /dev/null +++ b/.github/workflows/qa.yml @@ -0,0 +1,29 @@ +name: QA + +on: [push, pull_request] + +jobs: + build: + name: PHP ${{ matrix.php }} (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + php: [ 7.4 ] + os: [ ubuntu-latest ] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php }} + + - name: Composer + uses: php-actions/composer@master + + - name: PHP spec + uses: php-actions/phpspec@master + with: + config: phpspec.yml.dist diff --git a/.gitignore b/.gitignore index d8a7996..539f0ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ composer.lock vendor/ +.php_cs.cache