Merge pull request #41 from cbs-software/chore/cleanup-author-annotation #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: php-unit-tests | |
# I am limiting the branches on which this workflow is run for a push so we | |
# don't run it multiple times when pushing fixes to comments on a PR. In | |
# principle we don't do pushes except to feature branches but there have been a | |
# few times we cherry picked onto a release and it's just a good idea to protect | |
# the main/master and develop branches in case of an accidental commit. | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'develop' | |
- 'releases/**' | |
pull_request: | |
jobs: | |
run-php-unit-tests: | |
name: Run PHP Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: php-actions/composer@v5 # or alternative dependency management | |
- uses: php-actions/phpunit@v3 | |
with: | |
php_version: "8.0" | |
version: "9" | |
configuration: ./phpunit.xml | |
memory_limit: 256M | |
testsuite: ci |