Skip to content

Commit

Permalink
Merge pull request #44 from vstelmakh/php-8.3
Browse files Browse the repository at this point in the history
Add CI build for PHP 8.3
  • Loading branch information
vstelmakh authored Nov 4, 2023
2 parents 458f1af + dac39ee commit 08f83c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.1', '7.4', '8.0', '8.1', '8.2']
php: ['7.1', '7.4', '8.0', '8.1', '8.2', '8.3']
composer: ['--prefer-lowest', '']
exclude:
- php: '8.0'
Expand All @@ -20,6 +20,8 @@ jobs:
composer: '--prefer-lowest'
- php: '8.2'
composer: '--prefer-lowest'
- php: '8.3'
composer: '--prefer-lowest'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -29,16 +31,16 @@ jobs:
coverage: xdebug

- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
run: composer validate

- name: Prepare Composer cache vars
id: composer
run: |
echo "::set-output name=cache_dir::$(composer config cache-files-dir)"
echo "::set-output name=cache_key::$(date +'%Y-%m-%d')-${{ runner.os }}-${{ matrix.php }}${{ matrix.composer }}-composer-"
echo "cache_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
echo "cache_key=$(date +'%Y-%m-%d')-${{ runner.os }}-${{ matrix.php }}${{ matrix.composer }}-composer-" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v3
Expand Down

0 comments on commit 08f83c8

Please sign in to comment.