From 4b628c599ef30baec19d9e8d12552c7a49dbbc07 Mon Sep 17 00:00:00 2001 From: Kaung Sint Ko Ko <105710577+kgsint@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:59:20 +0630 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9259e1c..f1ba39b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,24 +10,22 @@ permissions: contents: read jobs: - build: - + tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v2 - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + extensions: mbstring, pdo, sqlite, pdo_sqlite + coverage: none - - name: Install dependencies - run: composer install --prefer-dist --no-progress + - name: Install Composer dependencies + run: composer install --prefer-dist --no-interaction - - name: Run test suite - run: composer test + - name: Execute tests + run: composer test