diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-02-04 12:38:13 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-02-04 12:41:53 +0000 |
| commit | b6017f990d38d8c56e04c0096ce9a7e8745ad4ba (patch) | |
| tree | 45d82d96268ab4c130c2b8a0f913d0ed469866c9 /.github | |
| parent | be5f8e6afb39b4963e2f232887bfa10cccf67361 (diff) | |
| download | webtrees-b6017f990d38d8c56e04c0096ce9a7e8745ad4ba.tar.gz webtrees-b6017f990d38d8c56e04c0096ce9a7e8745ad4ba.tar.bz2 webtrees-b6017f990d38d8c56e04c0096ce9a7e8745ad4ba.zip | |
Github actions
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/phpcs.yaml | 8 | ||||
| -rw-r--r-- | .github/workflows/phpstan.yaml | 12 | ||||
| -rw-r--r-- | .github/workflows/phpunit.yaml | 6 |
3 files changed, 9 insertions, 17 deletions
diff --git a/.github/workflows/phpcs.yaml b/.github/workflows/phpcs.yaml index 9d1fcfdbf4..abbd818c66 100644 --- a/.github/workflows/phpcs.yaml +++ b/.github/workflows/phpcs.yaml @@ -8,11 +8,11 @@ jobs: name: PHP/PHTML/CSS steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - - run: composer global require squizlabs/php_codesniffer=* --quiet + - run: composer validate + + - run: composer global require squizlabs/php_codesniffer - name: PHP run: ~/.composer/vendor/bin/phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength --extensions=php index.php app modules_v4 tests diff --git a/.github/workflows/phpstan.yaml b/.github/workflows/phpstan.yaml index 858e0ede9a..deb9d79065 100644 --- a/.github/workflows/phpstan.yaml +++ b/.github/workflows/phpstan.yaml @@ -8,18 +8,12 @@ jobs: name: phpstan steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@master - with: - php-version: 7.4 - extensions: gd,intl,mbstring,sqlite,zip - coverage: disable + - run: composer validate - run: composer global require phpstan/phpstan phpstan/extension-installer phpstan/phpstan-deprecation-rules phpstan/phpstan-strict-rules phpstan/phpstan-phpunit - - run: composer install --no-progress --no-suggest --ignore-platform-reqs + - run: composer install --no-progress - run: ~/.composer/vendor/bin/phpstan analyze --no-progress --level=max app modules_v4 index.php diff --git a/.github/workflows/phpunit.yaml b/.github/workflows/phpunit.yaml index 8fd7673285..8f02b92b73 100644 --- a/.github/workflows/phpunit.yaml +++ b/.github/workflows/phpunit.yaml @@ -20,13 +20,11 @@ jobs: extensions: gd,intl,mbstring,sqlite,zip coverage: pcov - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: composer validate - - run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs + - run: composer install --no-progress - run: composer require pcov/clobber - run: vendor/bin/pcov clobber |
