Skip to content

Commit

Permalink
test: disable lowest-dependency job in CI, as we have no runtime deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fquffio committed Nov 21, 2022
1 parent d7dff96 commit beb5269
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,40 +136,3 @@ jobs:
with:
name: 'PHP ${{ matrix.php }}'
path: 'clover.xml'

unit-lowest:
name: 'Run unit tests with lowest-matching dependencies versions'
if: "!contains(github.event.commits[0].message, '[skip ci]') && !contains(github.event.commits[0].message, '[ci skip]')"
runs-on: 'ubuntu-20.04'

steps:
- name: 'Checkout current revision'
uses: 'actions/checkout@v3'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '7.4'
tools: 'composer'

- name: 'Discover Composer cache directory'
id: 'cachedir'
run: 'echo "::set-output name=path::$(composer global config cache-dir)"'

- name: 'Share Composer cache across runs'
uses: 'actions/cache@v3'
with:
path: '${{ steps.cachedir.outputs.path }}'
key: "composer-lowest-${{ hashFiles('**/composer.json') }}"
restore-keys: |
composer-lowest-
composer-
- name: 'Update dependencies with Composer'
run: 'composer update --prefer-lowest --prefer-dist --no-interaction'

- name: 'Dump Composer autoloader'
run: 'composer dump-autoload --classmap-authoritative --no-cache'

- name: 'Run PHPUnit'
run: 'vendor/bin/phpunit'

0 comments on commit beb5269

Please sign in to comment.