Skip to content

Commit

Permalink
Merge pull request #47 from bizley/update-actions
Browse files Browse the repository at this point in the history
Update actions
  • Loading branch information
Bizley authored Oct 29, 2022
2 parents 9449e52 + df6c736 commit c764936
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@2.22.0
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
extensions: mbstring, intl
coverage: none
env:
Expand All @@ -28,7 +28,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@2.22.0
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, mysql
Expand All @@ -67,7 +67,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v3
Expand All @@ -80,11 +80,11 @@ jobs:
run: composer update --no-interaction --no-progress --optimize-autoloader

- name: Run PHPUnit
if: matrix.php != '8.0'
if: matrix.php != '8.1'
run: vendor/bin/phpunit

- name: Run Infection with PHPUnit
if: matrix.php == '8.0'
if: matrix.php == '8.1'
run: |
mkdir -p build/logs
vendor/bin/phpunit --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml
Expand Down

0 comments on commit c764936

Please sign in to comment.