Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsklopstra authored Sep 23, 2020
2 parents f7a5352 + 7f06744 commit 2c6da95
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
push:
pull_request:

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: [7.4]
os: [ubuntu-latest]

name: PHP${{ matrix.php }} on ${{ matrix.os }}
container:
image: lorisleiva/laravel-docker:${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Validate composer files
run: composer validate

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction

- name: Run tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage
node_modules
.php_cs.cache
.idea
.phpunit.result.cache

0 comments on commit 2c6da95

Please sign in to comment.