From b6017f990d38d8c56e04c0096ce9a7e8745ad4ba Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Thu, 4 Feb 2021 12:38:13 +0000 Subject: Github actions --- .github/workflows/phpcs.yaml | 8 ++++---- .github/workflows/phpstan.yaml | 12 +++--------- .github/workflows/phpunit.yaml | 6 ++---- 3 files changed, 9 insertions(+), 17 deletions(-) (limited to '.github') 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 -- cgit v1.3