Feature/gha #6
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: Test Scaffold Testing Package | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: php:8.3-cli | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
apt-get update && apt-get install -y \ | |
git \ | |
unzip \ | |
libzip-dev \ | |
&& docker-php-ext-install zip | |
- name: Install Composer | |
run: | | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
- name: Run tests | |
run: | | |
# Install dependencies | |
composer install --no-interaction --no-progress | |
# Run PHPUnit tests | |
./vendor/bin/phpunit \ | |
-v \ | |
--configuration phpunit.xml \ | |
tests/Unit/ |