Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test github ci #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
};
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v1
- name: docker login registry
run: docker login --username ${GITHUB_ACTOR} --password ${{ secrets.GITHUB_TOKEN_TO_PUSH_TO_PACKAGE_REGISTRY }} docker.pkg.github.com
- name: make build
run: |
export CI_PROJECT_PATH=${GITHUB_REPOSITORY}/ci/${GITHUB_REF} \
CI_REGISTRY=docker.pkg.github.com \
COMPOSE_FILE=docker-compose.yml:docker-compose.gitlab-ci.yml
make build
docker images
25 changes: 25 additions & 0 deletions .github/workflows/code-style.yml_
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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: |
docker-compose up -d node
make eslint

# - name: phpstan
# run: make phpstan
19 changes: 19 additions & 0 deletions .github/workflows/security.yml_
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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 audit-vendor

- name: yarn audit
run: make audit-node_modules
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
Loading