Skip to content

Commit

Permalink
Integration tests - PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 20, 2020
1 parent d7c45f9 commit e15772e
Show file tree
Hide file tree
Showing 4 changed files with 6,892 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,43 @@ jobs:

- name: "Tests"
run: "${{ matrix.script }}"

integration-tests:
name: "Integration Tests"

runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
script:
- |
git clone https://github.com/sebastianbergmann/phpunit.git e2e/integration/repo
cd e2e/integration/repo
git checkout 9.2.3
export COMPOSER_ROOT_VERSION=9.2.3
composer install
../../../phpstan.phar analyse -l 8 -c ../phpunit.neon src tests
steps:
- name: "Checkout"
uses: "actions/checkout@v2.3.1"

- name: "Install PHP"
uses: "shivammathur/setup-php@2.3.0"
with:
coverage: "none"
php-version: "7.4"

- name: "Cache dependencies"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-7.4-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-7.4-composer-"

- name: "Install dependencies"
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Tests"
run: "${{ matrix.script }}"
1 change: 1 addition & 0 deletions e2e/integration/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/repo

0 comments on commit e15772e

Please sign in to comment.