diff --git a/.github/workflows/php81.yml b/.github/workflows/php81.yml new file mode 100644 index 0000000..60a5510 --- /dev/null +++ b/.github/workflows/php81.yml @@ -0,0 +1,27 @@ +name: PHP 8.1 + +on: push + +jobs: + php80: + name: Check PHP 8.1 + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + uses: php-actions/composer@v5 + with: + php_version: 8.1 + args: --prefer-dist --ignore-platform-reqs + + - name: Check code styling + run: composer ecs-check + + - name: Create keys + run: ./bin/create_keys + + - name: Run unit and feature tests + run: composer test diff --git a/.github/workflows/php82.yml b/.github/workflows/php82.yml new file mode 100644 index 0000000..6499364 --- /dev/null +++ b/.github/workflows/php82.yml @@ -0,0 +1,27 @@ +name: PHP 8.2 + +on: push + +jobs: + php80: + name: Check PHP 8.2 + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + uses: php-actions/composer@v5 + with: + php_version: 8.2 + args: --prefer-dist --ignore-platform-reqs + + - name: Check code styling + run: composer ecs-check + + - name: Create keys + run: ./bin/create_keys + + - name: Run unit and feature tests + run: composer test diff --git a/composer.json b/composer.json index f31dffa..bbc7cb0 100644 --- a/composer.json +++ b/composer.json @@ -63,5 +63,10 @@ "composer outdated --direct --no-ansi", "composer outdated --minor-only --strict --direct" ] + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } }