updated gh actions

This commit is contained in:
denisdulici 2020-02-29 01:00:54 +03:00
parent 7c38c1890d
commit 4a99f39b67

View File

@ -21,23 +21,29 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Cache composer - name: Cache Composer
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: ~/.composer/cache/files path: ~/.composer/cache/files
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v1 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php }} 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 coverage: none
- name: Copy .env - name: Copy .env
run: cp .env.testing .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 run: composer test
- name: Execute tests - name: Execute tests