Skip to content

Commit

Permalink
Enable github actions (#19)
Browse files Browse the repository at this point in the history
* Enable github actions
  • Loading branch information
snapshotpl committed Jun 16, 2021
1 parent 5f049a8 commit 2e26e68
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 20 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Unit tests"

on: [ "pull_request", "push" ]

jobs:
unit-tests:
name: "Unit tests"

runs-on: ubuntu-20.04

strategy:
matrix:
php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
dependencies:
- lowest
- highest
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Caching dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}"

- name: "Installing dependencies lowest"
run: "composer update --no-interaction --no-progress --prefer-lowest --prefer-stable"
if: "matrix.dependencies == 'lowest'"

- name: "Installing dependencies highest"
run: "composer update --no-interaction --no-progress"
if: matrix.dependencies != 'lowest'

- name: "Unit tests"
run: "vendor/bin/phpunit"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
composer.phar
phpunit.xml
composer.lock
.phpunit.result.cache
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ checks:
fix_doc_comments: true

build:
environment:
variables:
XDEBUG_MODE: coverage
tests:
override:
-
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"require-dev": {
"league/tactician-doctrine": "^1.0",
"phpunit/phpunit": "^7.5.20 || ^9.3.8",
"doctrine/orm": "^2.5"
"doctrine/orm": "^2.5",
"squizlabs/php_codesniffer": "^3.6"
},
"keywords": [
"laminas framework",
Expand Down

0 comments on commit 2e26e68

Please sign in to comment.