Skip to content

Commit

Permalink
GH actions: trigger manually, test against php8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Singer committed Oct 13, 2023
1 parent c7e4b74 commit 967842e
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,29 @@ on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
php:
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.0, 8.1]
php: [8.0, 8.1, 8.2]
dependency-version: [prefer-lowest, prefer-stable]

steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug

# - name: do some magic Composer cache
# id: composer-cache
# run: echo "::set-output name=dir::$(composer config cache-files-dir)"
# - uses: actions/cache@v2
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: ${{ runner.os }}-composer-

- name: install dependencies
run: composer update --${{ matrix.dependency-version }}

- name: run tests
# run: php vendor/bin/phpunit --coverage-clover=coverage.clover
run: php vendor/bin/phpunit

# - name: upload code coverage
# run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

0 comments on commit 967842e

Please sign in to comment.