This repository was archived by the owner on Aug 22, 2025. It is now read-only.
Merge pull request #86 from codedge/dependabot/github_actions/actions… #125
This file contains hidden or 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: Tests PHP | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.0'] | |
dependency-version: [prefer-stable] | |
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
- name: Install dependencies | |
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction | |
working-directory: src/php | |
- name: Run tests | |
run: composer test | |
working-directory: src/php |