Skip to content

Commit

Permalink
Add Tests for PHP 8.1 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
relthyg authored Jan 24, 2023
1 parent 4167fb7 commit 9315564
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/depedencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ on: [push]
name: Dependencies
env:
PHP_VERSION: 7.2
PHP_8_VERSION: 8.1

jobs:
composer-require-checker:
name: Check missing composer requirements
name: Check missing composer requirements (PHP 7.2)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -33,3 +34,33 @@ jobs:
composer show
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0

composer-require-checker_PHP81:
name: Check missing composer requirements (PHP 8.1)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Configure Composer
run: |
mkdir -p ~/.composer/cache
- name: Konfiguriere PHP-Version und -Einstellungen im Worker-Node
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_8_VERSION }}
tools: composer:v2
ini-values: variables_order=EGPCS
# Falls spezielle Extensions installiert werden müssen:
# extensions: intl, mbstring
- name: Cache Composer Dependencies
uses: actions/cache@v1
with:
path: vendor/
key: composer-${{ env.PHP_8_VERSION }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ env.PHP_8_VERSION }}-${{ github.ref }}
composer-${{ env.PHP_8_VERSION }}-
- run: |
composer install --no-interaction --no-scripts --no-progress --no-suggest
composer show
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0
33 changes: 32 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: Tests
env:
APP_ENV: test
PHP_VERSION: 7.2
PHP_8_VERSION: 8.1
TEMP: ${{ github.workspace }}/tmp

jobs:
PHPUnit:
name: PHPUnit
name: PHPUnit (PHP 7.2)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -35,3 +36,33 @@ jobs:
composer install --no-interaction --no-scripts --no-progress --no-suggest
composer show
- run: vendor/bin/phpunit -vvv

PHPUnit_PHP81:
name: PHPUnit (PHP 8.2)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Configure Composer
run: |
mkdir -p ~/.composer/cache
- run: mkdir --mode=777 -p $GITHUB_WORKSPACE/{tmp,logs}
- name: Konfiguriere PHP-Version und -Einstellungen im Worker-Node
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_8_VERSION }}
tools: composer:v2
ini-values: variables_order=EGPCS
# Falls spezielle Extensions installiert werden müssen:
# extensions: intl, mbstring
- name: Cache Composer Dependencies
uses: actions/cache@v1
with:
path: vendor/
key: composer-${{ env.PHP_8_VERSION }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ env.PHP_8_VERSION }}-${{ github.ref }}
composer-${{ env.PHP_8_VERSION }}-
- run: |
composer install --no-interaction --no-scripts --no-progress --no-suggest
composer show
- run: vendor/bin/phpunit -vvv

0 comments on commit 9315564

Please sign in to comment.