From a219323f4d341391255355f1cf12ff5313f64e8b Mon Sep 17 00:00:00 2001 From: sagautam5 Date: Sun, 7 Apr 2024 13:17:55 +0545 Subject: [PATCH] update pipeline --- .github/workflows/ci.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00d9432..57adc79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,22 +4,20 @@ on: [push] jobs: build: + name: PHP Composer runs-on: ubuntu-latest + steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' - - name: Install dependencies - uses: php-actions/composer@v6 - with: - php_version: 8.0 - version: 1 + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-interaction - # - name: PHPUnit tests - # uses: php-actions/phpunit@master - # with: - # bootstrap: vendor/autoload.php - # configuration: phpunit.xml - # php_version: 7.0 - # version: 4.0.0 - # args: --coverage-text \ No newline at end of file + - name: Run PHPUnit tests + run: vendor/bin/phpunit \ No newline at end of file