From a526f861b6026e3633de9345cc1bc9b53797eafc Mon Sep 17 00:00:00 2001 From: Romain Gautier Date: Sat, 17 Aug 2019 01:12:21 +0200 Subject: [PATCH] test --- .github/workflows/code-style.yml | 19 +++++++++++++++++++ .github/workflows/security.yml | 14 ++++++++++++++ Makefile | 11 +++++++++-- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/code-style.yml create mode 100644 .github/workflows/security.yml diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml new file mode 100644 index 0000000..3d3e82a --- /dev/null +++ b/.github/workflows/code-style.yml @@ -0,0 +1,19 @@ +name: Code style + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: php-cs-fixer + run: make php-cs-fixer + - name: twigcs + run: make twigcs + - name: eslint + run: make eslint +# - name: phpstan +# run: make phpstan diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 0000000..154d8cb --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,14 @@ +name: Security + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - run: make start vendor node_modules + - name: sensiolabs/security-checker + run: make security diff --git a/Makefile b/Makefile index 2199845..926961e 100644 --- a/Makefile +++ b/Makefile @@ -134,10 +134,17 @@ lt: vendor ly: vendor $(SYMFONY) lint:yaml config -security: ## Check security of your dependencies (https://security.sensiolabs.org/) -security: vendor +security: ## Check security of your dependencies +security: audit-vendor audit-node_modules + +audit-vendor: ## (github.com/sensiolabs/security-checker) +audit-vendor: vendor $(EXEC_PHP) ./vendor/bin/security-checker security:check +audit-node_modules: ## npm audit (https://docs.npmjs.com/cli/audit) +audit-node_modules: node_modules + $(YARN) audit + phploc: ## PHPLoc (https://github.com/sebastianbergmann/phploc) $(QA) phploc src/