Implement union typed properties for even greater type safety #49
Workflow file for this run
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Tests | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'trunk' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
php: ['8.0', '8.1', '8.2', '8.3'] | |
fail-fast: false | |
name: PHP Coding Standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@2.19.1 | |
with: | |
php-version: ${{ matrix.php }} | |
ini-file: development | |
coverage: none | |
- name: Debugging | |
run: | | |
php --version | |
php -m | |
- name: Get Composer Cache Directory | |
id: composer-cache-dir | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache PHP Dependencies | |
id: composer-cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('composer.json') }} | |
- name: Install PHP Dependencies | |
run: | | |
composer update --prefer-dist --no-progress --no-interaction | |
- name: Run the tests | |
run: | | |
composer test |