Skip to content

Commit e086d91

Browse files
Release 1.0.0 (#1)
1 parent 05e5579 commit e086d91

24 files changed

+3211
-0
lines changed

.github/workflows/code-lint.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
##################################################################################
2+
#
3+
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
4+
#
5+
##################################################################################
6+
7+
name: "Static Analysis"
8+
9+
on:
10+
push:
11+
branches:
12+
- "master"
13+
pull_request:
14+
branches:
15+
- "master"
16+
- "dev"
17+
18+
jobs:
19+
analyze_sources:
20+
name: "Check if there any source code to work on?"
21+
runs-on: ubuntu-latest
22+
23+
outputs:
24+
# Export 'filter' step check result so next step can use it.
25+
run_action: ${{ steps.filter.outputs.src }}
26+
# These are source files matching our filter that are affected by the PR.
27+
changed_files: ${{ steps.filter.outputs.src_files }}
28+
29+
steps:
30+
# https://github.com/marketplace/actions/checkout
31+
- name: "Checkout sources"
32+
uses: actions/checkout@v4
33+
34+
# https://github.com/marketplace/actions/paths-changes-filter
35+
- name: "Look for changes that matters for us…"
36+
uses: dorny/paths-filter@v3
37+
id: filter
38+
with:
39+
# Token is optional for public repos, but required for private repos
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
list-files: 'escape'
42+
filters: |
43+
src:
44+
- 'src/**/*.php'
45+
- 'tests/**/*.php'
46+
47+
- name: "Will action step be run?"
48+
run: |
49+
found="NO"
50+
[[ ${{ steps.filter.outputs.src }} == 'true' ]] && found="YES"
51+
echo "run_action=${found}" >> $GITHUB_OUTPUT
52+
echo -e "\n****************************************\n"
53+
echo "${found}"
54+
echo -e "****************************************"
55+
56+
check:
57+
name: "Run tools…"
58+
# Will run only if analyze_sources determined it is needed.
59+
needs: analyze_sources
60+
if: needs.analyze_sources.outputs.run_action == 'true'
61+
62+
strategy:
63+
# do not stop the workflow if single run failed
64+
fail-fast: false
65+
matrix:
66+
# Quotes are needed it is treated as a number and zero at decimal part is gone
67+
# at runtime i.e. 8.10 -> 8.1, while "8.10" => "8.10".
68+
php: ["8.1"]
69+
70+
runs-on: ubuntu-latest
71+
72+
steps:
73+
# https://github.com/marketplace/actions/setup-php-action
74+
- name: "Setup PHP ${{ matrix.php }}"
75+
uses: shivammathur/setup-php@v2
76+
with:
77+
php-version: "${{ matrix.php }}"
78+
ini-values: |
79+
memory_limit=512M
80+
81+
82+
# https://github.com/marketplace/actions/checkout
83+
- name: "Checkout repository…"
84+
uses: actions/checkout@v4
85+
86+
# https://github.com/marketplace/actions/composer-php-actions
87+
- name: "Installing dependencies…"
88+
uses: php-actions/composer@v6
89+
with:
90+
version: 2
91+
php_version: "${{ matrix.php }}"
92+
dev: yes
93+
memory_limit: 512M
94+
95+
- name: "Running linters…"
96+
shell: bash
97+
run: composer lint

.github/workflows/css-lint.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
##################################################################################
2+
#
3+
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
4+
#
5+
##################################################################################
6+
7+
name: "CSS Lint"
8+
9+
on:
10+
push:
11+
branches:
12+
- "master"
13+
pull_request:
14+
branches:
15+
- "master"
16+
- "dev"
17+
18+
jobs:
19+
analyze_sources:
20+
name: "Check if there any CSS code to work on?"
21+
runs-on: ubuntu-latest
22+
23+
outputs:
24+
# Export 'filter' step check result so next step can use it.
25+
run_action: ${{ steps.filter.outputs.src }}
26+
# These are source files matching our filter that are affected by the PR.
27+
changed_files: ${{ steps.filter.outputs.src_files }}
28+
29+
steps:
30+
# https://github.com/marketplace/actions/checkout
31+
- name: "Checkout sources"
32+
uses: actions/checkout@v4
33+
34+
# https://github.com/marketplace/actions/paths-changes-filter
35+
- name: "Look for changes that matters for us…"
36+
uses: dorny/paths-filter@v3
37+
id: filter
38+
with:
39+
# Token is optional for public repos, but required for private repos
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
list-files: 'escape'
42+
filters: |
43+
src:
44+
- 'Resources/public/*.css'
45+
46+
- name: "Will action step be run?"
47+
run: |
48+
found="NO"
49+
[[ ${{ steps.filter.outputs.src }} == 'true' ]] && found="YES"
50+
echo "run_action=${found}" >> $GITHUB_OUTPUT
51+
echo -e "\n****************************************\n"
52+
echo "${found}"
53+
echo -e "****************************************"
54+
55+
check:
56+
name: "Run tools…"
57+
# Will run only if analyze_sources determined it is needed.
58+
needs: analyze_sources
59+
if: needs.analyze_sources.outputs.run_action == 'true'
60+
61+
runs-on: ubuntu-latest
62+
63+
steps:
64+
# https://github.com/marketplace/actions/checkout
65+
- name: "Checkout repository…"
66+
uses: actions/checkout@v4
67+
68+
# https://github.com/marketplace/actions/setup-node
69+
- name: "Setup Node.js"
70+
uses: actions/setup-node@v4
71+
with:
72+
node-version: '20'
73+
cache: 'npm'
74+
75+
- name: "Installing dependencies…"
76+
run: npm install
77+
78+
- name: "Running Stylelint…"
79+
run: npx stylelint "Resources/public/*.css"

.github/workflows/markdown.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
##################################################################################
2+
#
3+
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
4+
#
5+
##################################################################################
6+
#
7+
# Runs markdownlint on all *.md files
8+
#
9+
10+
name: "Markdown Lint"
11+
12+
on:
13+
push:
14+
branches: [ master ]
15+
pull_request:
16+
branches: [ master, dev ]
17+
18+
jobs:
19+
analyze_sources:
20+
name: "Check if there any source code to work on?"
21+
runs-on: ubuntu-latest
22+
23+
outputs:
24+
# Export 'filter' step check result so next step can use it.
25+
run_action: ${{ steps.filter.outputs.src }}
26+
# These are source files matching our filter that are affected by the PR.
27+
changed_files: ${{ steps.filter.outputs.src_files }}
28+
29+
steps:
30+
# https://github.com/marketplace/actions/checkout
31+
- name: "Checkout sources"
32+
uses: actions/checkout@v4
33+
34+
# https://github.com/marketplace/actions/paths-changes-filter
35+
- name: "Look for changes that matters for us..."
36+
uses: dorny/paths-filter@v3
37+
id: filter
38+
with:
39+
# Token is optional for public repos, but required for private repos
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
list-files: 'escape'
42+
filters: |
43+
src:
44+
- 'docs/*.md'
45+
- 'project/*.md'
46+
- 'README.md'
47+
48+
- name: "Will action step be run?"
49+
run: |
50+
found="NO"
51+
[[ ${{ steps.filter.outputs.src }} == 'true' ]] && found="YES"
52+
echo "run_action=${found}" >> $GITHUB_OUTPUT
53+
echo -e "\n****************************************\n"
54+
echo "${found}"
55+
echo -e "****************************************"
56+
57+
58+
mdlint:
59+
name: "Run tools…"
60+
# Will run only if analyze_sources determined it is needed.
61+
needs: analyze_sources
62+
if: needs.analyze_sources.outputs.run_action == 'true'
63+
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
# https://github.com/marketplace/actions/checkout
68+
- name: "Checkout repository..."
69+
uses: actions/checkout@v4
70+
71+
# https://github.com/marketplace/actions/my-markdown-linter
72+
- name: "Running markdown linter..."
73+
uses: ruzickap/action-my-markdown-linter@v1
74+
with:
75+
exclude: vendor
76+
config_file: .markdownlint.yaml

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# we need that to prevent commiting changes to these
2+
# files from worktree environent
3+
/.claude/settings.local.json
4+
5+
# IDE
6+
/.idea
7+
8+
# TMP files
9+
*.bak
10+
*~
11+
*.swp
12+
*.kate-swp
13+
*.tmp
14+
15+
/product_group_translations*.json
16+
17+
/resetdb.sh
18+
19+
###> symfony/framework-bundle ###
20+
/.env.local
21+
/.env.local.php
22+
/.env.*.local
23+
/mockup
24+
/config/secrets/prod/prod.decrypt.private.php
25+
/public/bundles/
26+
/var/
27+
/vendor/
28+
###< symfony/framework-bundle ###
29+
30+
###> phpunit/phpunit ###
31+
/phpunit.xml
32+
.phpunit.result.cache
33+
###< phpunit/phpunit ###
34+
35+
###> symfony/phpunit-bridge ###
36+
.phpunit.result.cache
37+
/phpunit.xml
38+
###< symfony/phpunit-bridge ###
39+
40+
**/.claude/settings.local.json
41+
42+
# Worktree configuration
43+
.worktree-config.yaml
44+
45+
###> squizlabs/php_codesniffer ###
46+
/.phpcs-cache
47+
###< squizlabs/php_codesniffer ###
48+
node_modules/
49+
.npm/
50+
.cache/
51+
52+
.viminfo
53+
54+
# these can be modified when you shell into container
55+
.bashrc
56+
.bash_history
57+
.viminfo
58+
.mariadb_history
59+
60+
# Files created in the folder by container tools like `mc`
61+
.config
62+
.local
63+
64+
composer.lock

0 commit comments

Comments
 (0)