diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67aa2d7..5d38c85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,41 @@ on: push: jobs: + php74: + name: PHP 7.4 + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + with: + fetch-depth: 2 + + - name: "Install PHP 7.4" + uses: "shivammathur/setup-php@v2" + with: + php-version: "7.4" + + - name: "Cache composer packages" + uses: "actions/cache@v2" + with: + path: "~/.composer/cache" + key: "php-composer-locked-${{ hashFiles('composer.lock') }}" + restore-keys: "php-composer-locked-" + + - name: "Install dependencies with composer" + run: "composer install --no-interaction" + + - name: "Run PHPUnit Tests" + run: "composer test" + + - name: "Run PHP CS Check" + run: "composer cs-check" + + - name: "Run PHPStan" + run: "composer analyze" + php8: - name: PHP 8 / Symfony 5.3 + name: PHP 8 runs-on: ubuntu-latest steps: - name: "Checkout" @@ -37,3 +70,35 @@ jobs: - name: "Run PHPStan" run: "composer analyze" + php81: + name: PHP 8.1 + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + with: + fetch-depth: 2 + + - name: "Install PHP 8.1" + uses: "shivammathur/setup-php@v2" + with: + php-version: "8.1" + + - name: "Cache composer packages" + uses: "actions/cache@v2" + with: + path: "~/.composer/cache" + key: "php-composer-locked-${{ hashFiles('composer.lock') }}" + restore-keys: "php-composer-locked-" + + - name: "Install dependencies with composer" + run: "composer install --no-interaction" + + - name: "Run PHPUnit Tests" + run: "composer test" + + - name: "Run PHP CS Check" + run: "composer cs-check" + + - name: "Run PHPStan" + run: "composer analyze"