From fda764baec63b33d688e2fa0bd570916958c8c56 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 9 Jul 2022 01:53:12 +0100 Subject: [PATCH] Setup GitHub actions Fixes https://github.com/pleonasm/bloom-filter/issues/11 --- .gitattributes | 2 +- .github/workflows/php.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/php.yml diff --git a/.gitattributes b/.gitattributes index 0af3009..8f74adb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,7 @@ .coveralls.yml export-ignore .gitattributes export-ignore +.github/ export-ignore .gitignore export-ignore -.travis.yml export-ignore composer.json export-ignore phpunit.xml.dist export-ignore tests export-ignore diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..ae9590f --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,35 @@ +name: PHP Composer + +on: + push: + pull_request: + +jobs: + run: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: + - "7.2" + - "7.3" + - "7.4" + - "8.0" + - "8.1" + + name: PHP ${{ matrix.php-versions }} test + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP with XDebug + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: xdebug + tools: composer + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run tests + run: composer test