Merge pull request #56 from DarthLegiON/kid #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check_composer: | |
name: Check composer.json | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: '8.3' | |
- run: composer validate --strict --no-check-lock | |
tests: | |
name: "Tests on PHP ${{ matrix.php }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php }}" | |
ini-file: development | |
- name: Update permissions | |
run: | | |
chmod 600 tests/Stubs/private.key | |
chmod 600 tests/Stubs/public.key | |
- name: Install dependencies | |
run: composer update --ansi --no-progress --no-interaction | |
- name: Run tests | |
run: php -d error_reporting="E_ALL & ~E_USER_DEPRECATED" vendor/bin/phpunit -v --colors=always |