Skip to content

Commit

Permalink
Merge pull request #29 from didoda/fix/github-workflow-deprecations
Browse files Browse the repository at this point in the history
Update php workflow
  • Loading branch information
didoda authored Mar 23, 2023
2 parents 4e16cad + dc8c345 commit b265a6d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
cs:
uses: bedita/github-workflows/.github/workflows/php-cs.yml@v1
with:
php_versions: '["7.4", "8.0", "8.1"]'
php_versions: '["7.4", "8.1", "8.2"]'

stan:
uses: bedita/github-workflows/.github/workflows/php-stan.yml@v1
with:
php_versions: '["7.4", "8.0", "8.1"]'
php_versions: '["7.4", "8.1", "8.2"]'

unit:
name: 'Run unit tests'
Expand All @@ -30,11 +30,11 @@ jobs:

strategy:
matrix:
php-version: [7.4, 8.0, 8.1]
php-version: [7.4, 8.1, 8.2]

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

- name: 'Composer config GH token if available'
run: 'if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi'
Expand All @@ -48,10 +48,10 @@ jobs:

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

- name: 'Share Composer cache across runs'
uses: 'actions/cache@v2'
uses: 'actions/cache@v3'
with:
path: '${{ steps.cachedir.outputs.path }}'
key: "composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}"
Expand All @@ -72,13 +72,13 @@ jobs:
filename: 'clover.xml'

- name: 'Export coverage results'
uses: 'codecov/codecov-action@v1'
uses: 'codecov/codecov-action@v3'
with:
file: './clover.xml'
files: './clover.xml'
env_vars: PHP_VERSION

- name: 'Archive code coverage results'
uses: 'actions/upload-artifact@v2'
uses: 'actions/upload-artifact@v3'
with:
name: 'PHP ${{ matrix.php }}'
path: 'clover.xml'
15 changes: 15 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ filter:
- 'vendors/*'
- 'webroot/js/jquery.min.js'
- 'webroot/js/jquery.jsonview.js'

build:
image: default-jammy
environment:
node: v18
nodes:
analysis:
environment:
php:
version: 8.2
pecl_extensions:
- zip
tests:
override:
- php-scrutinizer-run

0 comments on commit b265a6d

Please sign in to comment.