Skip to content

Commit

Permalink
ci: atualizar workflow para PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreBellas committed Dec 26, 2023
1 parent 2f4ba9f commit fef71ed
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/on-commit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: On commit => execute test workflow
on: push

jobs:
unit-feature-tests:
js-ts-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,3 +22,20 @@ jobs:
- name: Execute tests
working-directory: ./typescript
run: npm run test

php-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: composer update

- name: Dump autoload classes
run: composer dump-autoload -o

- name: Execute tests
run: vendor/phpunit/phpunit/phpunit -c php/phpunit.xml

0 comments on commit fef71ed

Please sign in to comment.