From 4a99f39b670bcd037684df243a33b97b2023f116 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sat, 29 Feb 2020 01:00:54 +0300 Subject: [PATCH] updated gh actions --- .github/workflows/tests.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 317645051..144d1b897 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,23 +21,29 @@ jobs: - name: Checkout code uses: actions/checkout@v1 - - name: Cache composer + - name: Cache Composer uses: actions/cache@v1 with: path: ~/.composer/cache/files key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extension-csv: bcmath, ctype, dom, fileinfo, intl, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip + extensions: bcmath, ctype, dom, fileinfo, intl, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip coverage: none - name: Copy .env run: cp .env.testing .env - - name: Install composer + - name: Install NPM + run: npm install + + - name: Compile assets + run: npm run production + + - name: Install Composer run: composer test - name: Execute tests