Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
added support for php 7.4 and 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dropelikeit committed Mar 29, 2022
1 parent d8ef44d commit 354602c
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

0 comments on commit 354602c

Please sign in to comment.