github actions

This commit is contained in:
denisdulici 2019-12-04 18:39:02 +03:00
parent b8018dd804
commit d4f390a348

View File

@ -5,23 +5,29 @@ on: [push, pull_request]
jobs: jobs:
tests: tests:
name: PHP ${{ matrix.php-versions }} Test name: PHP ${{ matrix.php }} Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
max-parallel: 2
matrix: matrix:
php-versions: ['7.2', '7.3', '7.4'] php: ['7.2', '7.3', '7.4']
steps: steps:
- uses: actions/checkout@v1 - name: Checkout code
uses: actions/checkout@v1
- name: Cache composer
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@master uses: shivammathur/setup-php@v1
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php }}
extension-csv: bcmath, ctype, dom, fileinfo, gd, json, mbstring, openssl, xml, zip extension-csv: bcmath, ctype, dom, fileinfo, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip
coverage: none coverage: none
- name: Copy .env - name: Copy .env