Skip to content

Commit 48b8064

Browse files
committed
test
1 parent 9d4d50b commit 48b8064

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

.github/workflows/code-style.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Code style
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: php-cs-fixer
14+
run: make php-cs-fixer
15+
16+
- name: twigcs
17+
run: make twigcs
18+
19+
- name: eslint
20+
run: make eslint
21+
22+
# - name: phpstan
23+
# run: make phpstan

.github/workflows/security.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Security
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- run: make start vendor node_modules
14+
15+
- name: sensiolabs/security-checker
16+
run: make audit-vendor
17+
18+
- name: yarn audit
19+
run: make audit-node_modules

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,17 @@ lt: vendor
134134
ly: vendor
135135
$(SYMFONY) lint:yaml config
136136

137-
security: ## Check security of your dependencies (https://security.sensiolabs.org/)
138-
security: vendor
137+
security: ## Check security of your dependencies
138+
security: audit-vendor audit-node_modules
139+
140+
audit-vendor: ## (github.com/sensiolabs/security-checker)
141+
audit-vendor: vendor
139142
$(EXEC_PHP) ./vendor/bin/security-checker security:check
140143

144+
audit-node_modules: ## npm audit (https://docs.npmjs.com/cli/audit)
145+
audit-node_modules: node_modules
146+
$(YARN) audit
147+
141148
phploc: ## PHPLoc (https://github.com/sebastianbergmann/phploc)
142149
$(QA) phploc src/
143150

0 commit comments

Comments
 (0)