Skip to content

Commit

Permalink
updated gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 28, 2020
1 parent 7c38c18 commit 4a99f39
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a99f39

Please sign in to comment.