Skip to content

Commit

Permalink
added github actions
Browse files Browse the repository at this point in the history
change docker to docker github images

update
  • Loading branch information
AlessandroMinoccheri committed Jan 4, 2021
1 parent 71c33ce commit 756463d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Empty file modified .circleci/config.yml
100644 → 100755
Empty file.
42 changes: 42 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Poser

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
container: pugx/poser:php80
steps:
- uses: actions/checkout@v2

- name: Validate composer.json
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install -n --no-progress --no-suggest

- name: Coding Standard Checks
run: PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix --verbose --diff --dry-run

- name: phpspec
run: bin/phpspec run --format=pretty

- name: Run tests (phpspec)
run: ./bin/phpspec run --format=pretty

- name: Run coverage tests (phpspec)
run: XDEBUG_MODE=coverage bin/phpspec run -f progress -c phpspec-coverage.yml

- name: Run behat tests
run: ./bin/behat

0 comments on commit 756463d

Please sign in to comment.