Skip to content

Add Laravel 11 support #11

Add Laravel 11 support

Add Laravel 11 support #11

Workflow file for this run

name: tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Make chown
run: sudo chown -R $USER:$USER ${{ github.workspace }}
- uses: actions/checkout@v2
- name: Docker compose up
run: docker-compose up -d
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: vendor/bin/phpunit --coverage-clover coverage.xml
# - uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# flags: unittests
# fail_ci_if_error: true