1
0
Fork 0
mirror of https://github.com/archtechx/helpers.git synced 2025-12-12 04:04:04 +00:00

update CI

This commit is contained in:
Samuel Štancl 2021-10-28 19:39:09 +02:00
parent 8c89c2bf72
commit cf31db4036
4 changed files with 0 additions and 46 deletions

View file

@ -3,7 +3,6 @@ name: CI
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
PHP_CS_FIXER_IGNORE_ENV: 1
MYSQL_PORT: 3307
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
@ -18,24 +17,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Start docker containers
run: docker-compose up -d
- name: Install composer dependencies
run: composer install
- name: Run tests
run: vendor/bin/pest
phpstan:
name: Static analysis (PHPStan)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install composer dependencies
run: composer install
- name: Run phpstan
run: vendor/bin/phpstan analyse
php-cs-fixer:
name: Code style (php-cs-fixer)
runs-on: ubuntu-latest

7
check
View file

@ -36,13 +36,6 @@ else
esac
fi
if (./vendor/bin/phpstan analyse > /dev/null 2>/dev/null); then
echo '✅ PHPStan OK'
else
echo '❌ PHPStan FAIL'
offer_run './vendor/bin/phpstan analyse'
fi
if (./vendor/bin/pest > /dev/null 2>/dev/null); then
echo '✅ PEST OK'
else

View file

@ -23,7 +23,6 @@
},
"require-dev": {
"orchestra/testbench": "^6.9",
"nunomaduro/larastan": "^0.6.10",
"pestphp/pest": "^1.2",
"pestphp/pest-plugin-laravel": "^1.0"
}

View file

@ -1,24 +0,0 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon
parameters:
paths:
- src
level: 8
universalObjectCratesClasses:
- Illuminate\Routing\Route
ignoreErrors:
# -
# message: '#Offset (.*?) does not exist on array\|null#'
# paths:
# - tests/*
# -
# message: '#expects resource, resource\|false given#'
# paths:
# - tests/*
# - '#should return \$this#'
checkMissingIterableValueType: false