From 66133125a394f8b47a6f20152b3a6c5d33e1a03f Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 17 Apr 2024 18:32:41 +0200 Subject: [PATCH] update ci to run on all versions --- .github/workflows/ci-8.1.yml | 48 ++++++++++++++++++++++++ .github/workflows/{ci.yml => ci-8.2.yml} | 2 +- .github/workflows/ci-8.3.yml | 48 ++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-8.1.yml rename .github/workflows/{ci.yml => ci-8.2.yml} (98%) create mode 100644 .github/workflows/ci-8.3.yml diff --git a/.github/workflows/ci-8.1.yml b/.github/workflows/ci-8.1.yml new file mode 100644 index 0000000..a1bfcf6 --- /dev/null +++ b/.github/workflows/ci-8.1.yml @@ -0,0 +1,48 @@ +name: CI-8.1 + +on: [push] + +env: + ACTION_PHP_VERSION: 8.1 + ACTION_PHP_EXTENSIONS: zip + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Cache Composer dependencies + uses: actions/cache@v3 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + + - name: Composer install + uses: php-actions/composer@v6 + with: + php_version: 8.1 + php_extensions: zip gd + + - name: PHPUnit + uses: php-actions/phpunit@v3 + with: + bootstrap: vendor/autoload.php + php_version: 8.1 + configuration: phpunit.xml.dist + php_extensions: zip gd + test_suffix: Test.php + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + php_version: 8.1 + path: src/ + + - name: PHP Code Sniffer + uses: php-actions/phpcs@v1 + with: + php_version: 8.1 + path: src/ + standard: phpcs.xml.dist diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-8.2.yml similarity index 98% rename from .github/workflows/ci.yml rename to .github/workflows/ci-8.2.yml index d85f6d9..a275518 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-8.2.yml @@ -1,4 +1,4 @@ -name: CI +name: CI-8.2 on: [push] diff --git a/.github/workflows/ci-8.3.yml b/.github/workflows/ci-8.3.yml new file mode 100644 index 0000000..3e2f4fa --- /dev/null +++ b/.github/workflows/ci-8.3.yml @@ -0,0 +1,48 @@ +name: CI-8.3 + +on: [push] + +env: + ACTION_PHP_VERSION: 8.3 + ACTION_PHP_EXTENSIONS: zip + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Cache Composer dependencies + uses: actions/cache@v3 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + + - name: Composer install + uses: php-actions/composer@v6 + with: + php_version: 8.3 + php_extensions: zip gd + + - name: PHPUnit + uses: php-actions/phpunit@v3 + with: + bootstrap: vendor/autoload.php + php_version: 8.3 + configuration: phpunit.xml.dist + php_extensions: zip gd + test_suffix: Test.php + + - name: PHPStan + uses: php-actions/phpstan@v3 + with: + php_version: 8.3 + path: src/ + + - name: PHP Code Sniffer + uses: php-actions/phpcs@v1 + with: + php_version: 8.3 + path: src/ + standard: phpcs.xml.dist