Update phpunit.yml #8
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the code | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up PHP with the version you need | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
tools: composer | |
# Install dependencies | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
# Run tests | |
- name: Run tests | |
env: | |
DOCUMENT_CLOUD_API_KEY: ${{ secrets.DOCUMENT_CLOUD_API_KEY }} | |
run: vendor/bin/phpunit tests |