Skip to content

Commit 88dd1b8

Browse files
committed
feat: first commit
Signed-off-by: Vitor Mattos <[email protected]>
0 parents  commit 88dd1b8

28 files changed

+8661
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.feature]
14+
indent_size = 2
15+
indent_style = space
16+
17+
[*.yml]
18+
indent_size = 2
19+
indent_style = space
20+
21+
[*.md]
22+
trim_trailing_whitespace = false
23+
24+
[build/psalm-baseline.xml]
25+
indent_size = 2
26+
indent_style = space

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-FileCopyrightText: 2024-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
github: libresign

.github/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
# Comment to be posted to on PRs from first time contributors in your repository
5+
newPRWelcomeComment: "Thanks for opening your first pull request in this repository! :v:"

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-FileCopyrightText: 2024-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
version: 2
5+
updates:
6+
# Maintain dependencies for Composer
7+
- package-ecosystem: "composer" # See documentation for possible values
8+
directory: "/" # Location of package manifests
9+
schedule:
10+
interval: "daily"

.github/pull_request_template.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### Pull Request Description
2+
3+
4+
### Related Issue
5+
<!--
6+
If this PR is related to an issue, put here, if not, remove this block
7+
-->
8+
Issue Number:
9+
10+
### Pull Request Type
11+
12+
<!--
13+
Please check the type of change your pull request introduces. Remove all that is unrelated and remove the comment block too, maintaining only the type of your PR:
14+
15+
- Bugfix
16+
- Feature
17+
- Code style update (formatting, renaming)
18+
- Refactoring (no functional changes, no api changes)
19+
- Build related changes
20+
- Documentation content changes
21+
- Other (please describe):
22+
-->
23+
24+
### Pull request checklist
25+
26+
- [ ] Did you explain or provide a way of how can we test your code ?
27+
- [ ] Did you provide a general summary of your changes ?
28+
- [ ] Try to limit your pull request to one type, submit multiple pull requests if needed
29+
- [ ] I implemented tests that cover my contribution

.github/workflows/lint-php-cs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SPDX-FileCopyrightText: 2024-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Lint php-cs
5+
6+
on: pull_request
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: lint-php-cs-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
19+
name: php-cs
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+
25+
- name: Set up php8.3
26+
uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2
27+
with:
28+
php-version: 8.3
29+
coverage: none
30+
ini-file: development
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Install dependencies
35+
run: composer i
36+
37+
- name: Lint
38+
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )

.github/workflows/lint-php.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-FileCopyrightText: 2024-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Lint php
5+
6+
on: pull_request
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: lint-php-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
php-lint:
17+
runs-on: ubuntu-latest
18+
19+
name: php-lint
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+
25+
- name: Set up php 8.3
26+
uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2
27+
with:
28+
php-version: 8.3
29+
coverage: none
30+
ini-file: development
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Lint
35+
run: composer run lint
36+
37+
summary:
38+
permissions:
39+
contents: none
40+
runs-on: ubuntu-latest
41+
needs: php-lint
42+
43+
if: always()
44+
45+
name: php-lint-summary
46+
47+
steps:
48+
- name: Summary status
49+
run: if ${{ needs.php-lint.result != 'success' && needs.php-lint.result != 'skipped' }}; then exit 1; fi

.github/workflows/lint-phpunit.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SPDX-FileCopyrightText: 2024-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Phpunit
5+
6+
on: pull_request
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: phpunit-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
19+
name: phpunit
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+
25+
- name: Set up php8.3
26+
uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2
27+
with:
28+
php-version: 8.3
29+
coverage: none
30+
ini-file: development
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Install dependencies
35+
run: composer i
36+
37+
- name: PHPUnit
38+
run: composer run test:unit

.github/workflows/psalm.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-FileCopyrightText: 2024-2024 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Static analysis
5+
6+
on: pull_request
7+
8+
concurrency:
9+
group: psalm-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
static-analysis:
14+
runs-on: ubuntu-latest
15+
16+
name: static-psalm-analysis
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
20+
21+
- name: Set up php8.3
22+
uses: shivammathur/setup-php@fc14643b0a99ee9db10a3c025a33d76544fa3761 # v2
23+
with:
24+
php-version: 8.3
25+
coverage: none
26+
ini-file: development
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Install dependencies
31+
run: composer i
32+
33+
- name: Run coding standards check
34+
run: composer run psalm

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.idea
2+
.vscode
3+
.env
4+
/vendor/
5+
/vendor-bin/**/vendor/
6+
/tests/logs/
7+
/.php-cs-fixer.cache
8+
.phpunit.result.cache
9+
*.phar

0 commit comments

Comments
 (0)