Updated github workflows #12
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: PHPUnit Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- develop | |
- main | |
# Cancels all previous workflow runs for pull requests that have not completed. | |
concurrency: | |
# The concurrency group contains the workflow name and the branch name for pull requests | |
# or the commit hash for any other events. | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: PHP Unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use desired version of PHP (7.4 with xdebug) | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
coverage: xdebug | |
- name: Composer install | |
run: composer install | |
- name: Running the PHPUnit tests | |
continue-on-error: true | |
run: composer run test |