2019-11-14 08:17:17 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Validate composer.json and composer.lock
|
|
|
|
run: composer validate
|
|
|
|
|
2019-11-14 08:19:32 +01:00
|
|
|
- name: Cache vendor
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: node_modules
|
|
|
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.OS }}-build-${{ env.cache-name }}-
|
|
|
|
${{ runner.OS }}-build-
|
|
|
|
|
2019-11-14 08:17:17 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: composer install --prefer-dist --no-progress --no-suggest
|
|
|
|
|
|
|
|
- name: Run test suite
|
|
|
|
run: composer run-script test
|