Skip to content

Commit

Permalink
Tune composer GitHub action for PHP language
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdaming authored and MENANTEAU Damien committed Nov 17, 2023
1 parent e323e68 commit 6afbe59
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/composer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@ on:
paths:
- 'php/**'

defaults:
run:
working-directory: php

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Composer
uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
COMPOSER: composer.json
with:
version: '9.6'
php-version: '8.2'
configuration: phpunit.xml.dist
php_version: '8.2'
working_dir: .
container_workdir: /app/php
- name: Check Syntax
working-directory: php
run: vendor/bin/parallel-lint --exclude vendor .
- name: PHPUnit Tests
working-directory: php
run: vendor/bin/phpunit tests

0 comments on commit 6afbe59

Please sign in to comment.