Skip to content

Commit 91c5ec6

Browse files
committed
🔀 Merge @sikessem/capsule
2 parents 6dfb240 + 0fe5a70 commit 91c5ec6

33 files changed

+1626
-3070
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ insert_final_newline = true
77
indent_style = space
88
indent_size = 4
99
trim_trailing_whitespace = true
10+
quote_type = single
1011

1112
[*.json]
1213
insert_final_newline = ignore
@@ -16,3 +17,6 @@ trim_trailing_whitespace = false
1617

1718
[*.{yml,yaml}]
1819
indent_size = 2
20+
21+
[docker-compose.yml]
22+
indent_size = 4

.gitattributes

+6-9
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@
1414
*.jpg binary
1515
*.jpeg binary
1616

17-
/src/Program.php export-ignore
18-
/tests/Feat/ExampleTest.php export-ignore
19-
/tests/Unit/ProgramTest.php export-ignore
20-
# CHANGELOG.md export-ignore
21-
# .editorconfig export-ignore
22-
# .gitattributes export-ignore
23-
# .gitignore export-ignore
24-
# /.github export-ignore
25-
# /tests export-ignore
17+
CHANGELOG.md export-ignore
18+
.editorconfig export-ignore
19+
.gitattributes export-ignore
20+
.gitignore export-ignore
21+
/.github export-ignore
22+
/tests export-ignore

.github/workflows/tests.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Tests
2+
3+
permissions:
4+
contents: read
5+
6+
on: ['push', 'pull_request']
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.operating-system }}
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
operating-system: [ubuntu-latest]
15+
php-version: [8.1, 8.2]
16+
dependency-version: [prefer-lowest, prefer-stable]
17+
name: 👷 CI PHP-${{ matrix.php-version }} ${{ matrix.dependency-version }} on ${{ matrix.operating-system }}
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Cache dependencies
24+
id: composer-cache
25+
run: |
26+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
27+
- uses: actions/cache@v3
28+
with:
29+
path: ${{ steps.composer-cache.outputs.dir }}
30+
key: ${{ runner.operating-system }}-dependencies-php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.json') }}
31+
restore-keys: |
32+
${{ runner.operating-system }}-dependencies-php-${{ matrix.php-version }}-composer-
33+
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php-version }}
38+
extensions: curl, dom, gd, intl, mbstring, openssl, tokenizer, zip
39+
ini-values: error_reporting=E_ALL
40+
tools: composer:v2, php-cs-fixer, phpunit, vimeo/psalm
41+
coverage: pcov
42+
43+
- name: Install dependencies
44+
run: |
45+
set -e
46+
composer install -q --no-ansi --no-cache --no-interaction --no-scripts --no-progress --prefer-dist
47+
composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-progress
48+
49+
- name: Update dependencies with latest stable
50+
if: matrix.dependency-version == 'prefer-stable'
51+
run: composer update --prefer-stable
52+
53+
- name: Update dependencies with lowest stable
54+
if: matrix.dependency-version == 'prefer-lowest'
55+
run: composer update --prefer-stable --prefer-lowest
56+
57+
- name: 🧹 Check code lint
58+
run: composer check
59+
60+
- name: ⚗️ Run static analysis
61+
run: |
62+
composer analyse
63+
composer inspect
64+
65+
- name: ✅ Test features
66+
run: composer test
67+
68+
- name: 🧪 Test the whole application
69+
run: composer debug

CODE_OF_CONDUCT.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
[ske@sikessem.com](mailto:ske@sikessem.com).
63+
[siguici@proton.me](mailto:siguici@proton.me).
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the
@@ -121,8 +121,10 @@ version 2.0, available at
121121
Community Impact Guidelines were inspired by
122122
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123123

124-
For answers to common questions about this code of conduct, see the FAQ at
125-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
124+
For answers to common questions about this code of conduct,
125+
see the FAQ at [https://www.contributor-covenant.org/faq][FAQ].
126+
Translations are available
127+
at [https://www.contributor-covenant.org/translations][translations].
126128

127129
[homepage]: https://www.contributor-covenant.org
128130
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html

CONTRIBUTING.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# 👏 Contributing to the Sikessem core
2+
3+
We want to make contributing to [Capsule](https://github.com/sikessem/capsule) as easy and
4+
transparent as possible.
5+
6+
Contributions are welcome, and are accepted via pull requests.
7+
Please review these guidelines before submitting any pull requests.
8+
9+
## Process
10+
11+
We actively welcome your pull requests.
12+
13+
1. Fork the repo and create your branch from `main`.
14+
2. Create a new branch for your feature.
15+
3. If you've added code that should be tested, add tests.
16+
4. If you've changed APIs, update the documentation.
17+
5. Ensure the test suite passes.
18+
6. Make sure your code lints.
19+
7. Open a pull request detailing your changes.
20+
21+
## Guidelines
22+
23+
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
24+
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
25+
* Please remember that we follow [SemVer](http://semver.org/).
26+
27+
## Issues
28+
29+
We use GitHub issues to track public bugs. Please ensure your description is
30+
clear and has sufficient instructions to be able to reproduce the issue.
31+
32+
## License
33+
34+
By contributing to [Sikessem](https://github.com/sikessem/core), you agree that your
35+
contributions will be licensed under the [LICENSE.md](./LICENSE.md) file.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2022 [Sigui Kessé Emmanuel](https://sigui.ci/) <[contact@sigui.ci](mailto:contact@sigui.ci)>
3+
Copyright (c) 2024 [Sikessem](https://github.com/sikessem/)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)