mirror of
https://github.com/archtechx/helpers.git
synced 2025-12-12 04:04:04 +00:00
update CI
This commit is contained in:
parent
8c89c2bf72
commit
cf31db4036
4 changed files with 0 additions and 46 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -3,7 +3,6 @@ name: CI
|
||||||
env:
|
env:
|
||||||
COMPOSE_INTERACTIVE_NO_CLI: 1
|
COMPOSE_INTERACTIVE_NO_CLI: 1
|
||||||
PHP_CS_FIXER_IGNORE_ENV: 1
|
PHP_CS_FIXER_IGNORE_ENV: 1
|
||||||
MYSQL_PORT: 3307
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -18,24 +17,11 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Start docker containers
|
|
||||||
run: docker-compose up -d
|
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: composer install
|
run: composer install
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: vendor/bin/pest
|
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:
|
php-cs-fixer:
|
||||||
name: Code style (php-cs-fixer)
|
name: Code style (php-cs-fixer)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
7
check
7
check
|
|
@ -36,13 +36,6 @@ else
|
||||||
esac
|
esac
|
||||||
fi
|
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
|
if (./vendor/bin/pest > /dev/null 2>/dev/null); then
|
||||||
echo '✅ PEST OK'
|
echo '✅ PEST OK'
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"orchestra/testbench": "^6.9",
|
"orchestra/testbench": "^6.9",
|
||||||
"nunomaduro/larastan": "^0.6.10",
|
|
||||||
"pestphp/pest": "^1.2",
|
"pestphp/pest": "^1.2",
|
||||||
"pestphp/pest-plugin-laravel": "^1.0"
|
"pestphp/pest-plugin-laravel": "^1.0"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
phpstan.neon
24
phpstan.neon
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue