Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #31 from mavimo/re-enable-ci
Browse files Browse the repository at this point in the history
Enable github workflows and remove github actions
  • Loading branch information
mavimo authored Aug 20, 2019
2 parents c42ce6e + 9365045 commit 75e5627
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/push-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Integration test
on: push
jobs:
integration-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: prepare
uses: docker://bash
with:
entrypoint: sh
args: -l -c "sed -i 's/{GITHUB_SHA}/'\"${GITHUB_SHA}\"'/' ${GITHUB_WORKSPACE}/tests-integration/composer.json"

- name: composer-install
uses: docker://composer
with:
args: install --working-dir tests-integration

- name: test
uses: docker://php:7.2
with:
args: tests-integration/vendor/bin/phpstan analyse --configuration tests-integration/phpstan.neon.dist
--no-progress --error-format=junit src
57 changes: 57 additions & 0 deletions .github/workflows/push-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Testing
on: push
jobs:
phpunit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: composer-install
uses: docker://composer
with:
args: install --prefer-source --no-progress

- name: phpunit
uses: docker://php:7.2
with:
args: phpdbg -qrr ./vendor/bin/phpunit

- name: codecoverage
uses: pleo-io/actions/codecov@master
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
args: -f clover-report.xml

phpstan:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: composer-install
uses: docker://composer
with:
args: install --prefer-source --no-progress

- name: phpstan
uses: docker://php:7.2
with:
args: vendor/bin/phpstan analyse

phpcs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: composer-install
uses: docker://composer
with:
args: install --prefer-source --no-progress

- name: phpcs
uses: docker://php:7.2
with:
args: vendor/bin/phpcs

0 comments on commit 75e5627

Please sign in to comment.