Skip to content

Commit

Permalink
Merge pull request #1649 from NatLibFi/use-setup-php-action
Browse files Browse the repository at this point in the history
Use setup-php instead of php-actions so that all CI steps are run using the same PHP version
  • Loading branch information
osma authored Aug 15, 2024
2 parents 9b27db8 + c3ba42e commit 3559996
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ jobs:
restore-keys: |
${{ runner.os }}-php${{ matrix.php_version}}-skosmos3-
- name: Install Composer dependencies
uses: php-actions/composer@v6
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php_version: ${{ matrix.php_version }}
php_extensions: intl xsl pcov
php-version: ${{ matrix.php_version }}
extensions: intl, xsl, pcov
coverage: pcov

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist

- name: Install Node
uses: actions/setup-node@v3
Expand All @@ -62,15 +66,7 @@ jobs:
run: cd resource/js; npx standard *.js

- name: Run PHPUnit tests
uses: php-actions/phpunit@v3
env:
LANGUAGE: fr
with:
version: 9.5
php_version: ${{ matrix.php_version }}
php_extensions: intl xsl pcov
memory_limit: 512M
configuration: phpunit.xml
run: ./vendor/bin/phpunit --configuration phpunit.xml

- name: Publish code coverage to Code Climate
uses: paambaati/codeclimate-action@v5.0.0
Expand Down

0 comments on commit 3559996

Please sign in to comment.