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

github actions #25

Merged
merged 8 commits into from
Dec 7, 2023
Merged
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
19 changes: 18 additions & 1 deletion .github/workflows/list-code.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Lint code

on: [ push, pull_request ]
on: [ pull_request ]

permissions:
contents: read
Expand All @@ -22,3 +22,20 @@ jobs:

- name: Eslint action
run: cd ./_theme_dev && npm run js-lint

stylelint:
name: Code quality front office code - SCSS Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install dependencies
run: cd ./_theme_dev && npm install

- name: Stylelint action
run: cd ./_theme_dev && npm run scss-lint
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: PHP tests

on: [push, pull_request]
on: [ pull_request ]

jobs:
php-linter:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/psalm-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Psalm Static analysis

on: [ pull_request ]

jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Psalm
uses: docker://ghcr.io/psalm/psalm-github-actions:latest
with:
security_analysis: true
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
12 changes: 12 additions & 0 deletions .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Yaml Lint
on: [ pull_request ]
jobs:
lint_yaml_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: config/*.yml config/**/*.yml
config_file: .yamllint.yml
11 changes: 11 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
config_data: |
extends: default
rules:
line-length:
max: 120
document-start:
present: false
braces:
forbid: false
min-spaces-inside: 1
max-spaces-inside: 1
Loading