name: Run Unit Tests on: push: branches: - main - develop pull_request: jobs: test: runs-on: phpunit_test container: php:8.1-cli-alpine steps: - name: Checkout code uses: actions/checkout@v4 - name: Install dependencies run: | apk add --no-cache git unzip curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer composer install --no-interaction --prefer-dist - name: Run PHPUnit tests run: | vendor/bin/phpunit --configuration phpunit.xml