Repository navigation
Merge pull request #15 from vinayak-iyer-paysera/EE-288-unused-depend… #17
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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| matrix: | |
| operating-system: | |
| - 'ubuntu-latest' | |
| php: | |
| - '7.1' | |
| - '7.2' | |
| - '7.3' | |
| - '7.4' | |
| - '8.0' | |
| - '8.1' | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| dependency: | |
| - 'lowest' | |
| - 'highest' | |
| name: PHP ${{ matrix.php }} with ${{ matrix.dependency }} dependencies tests on ${{ matrix.operating-system }} | |
| steps: | |
| - name: Setup PHP version ${{ matrix.php }} on ${{ matrix.operating-system }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Allow packages with security advisories for the lowest dependencies | |
| if: matrix.dependency == 'lowest' && matrix.php != '7.1' | |
| run: composer config --global policy.advisories.block false | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v2 | |
| with: | |
| dependency-versions: ${{ matrix.dependency }} | |
| - name: Run all tests | |
| run: composer test |