diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7c1527c..48ee9d27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,44 +3,42 @@ name: CI on: push jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - php-versions: ['7.1', '7.2', '7.3', '7.4'] - name: PHP ${{ matrix.php-versions }} - steps: - - uses: actions/checkout@v2 - - - name: Install PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-versions }} - extensions: intl - tools: composer:v1 - - - name: Check PHP Version - run: php -v - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - - name: Install composer dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --no-progress --no-suggest - - - name: Install npm dependencies - run: npm install - - - name: Run Phing - run: composer run-script phing + phing: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.4'] + name: Phing ${{ matrix.php-versions }} + steps: + - name: 📤 Checkout project + uses: actions/checkout@v4 + + - name: 🐘 Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + ini-values: xdebug.mode=coverage + extensions: bcmath, tidy + tools: composer + + - name: ✌️ Check PHP Version + run: php -v + + - name: 🛂 Validate composer.json and composer.lock + run: composer validate + + - name: 📩 Cache Composer packages + id: composer-cache + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}-v1 + restore-keys: | + ${{ runner.os }}-php- + + - name: 📦 Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --no-progress --no-suggest + + - name: ✅ Run Phing + run: composer run-script phing diff --git a/composer.json b/composer.json index 5e5ad253..0c2e27fe 100644 --- a/composer.json +++ b/composer.json @@ -50,6 +50,7 @@ "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "phing": "./vendor/bin/phing test" + "phing": "./vendor/bin/phing test", + "test": "./vendor/bin/phpunit" } }