Skip to content

Commit 459452f

Browse files
committed
📦️ Use the @Sikessem skeleton
1 parent 8687fc4 commit 459452f

30 files changed

+11299
-275
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.json]
12+
insert_final_newline = ignore
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.{yml,yaml}]
18+
indent_size = 2

.gitattributes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
* text=auto
2+
3+
*.css diff=css
4+
*.html diff=html
5+
*.md diff=markdown
6+
*.php diff=php
7+
*.json linguist-language=JSON-with-Comments
8+
*.neon linguist-language=YAML
9+
10+
*.phar binary
11+
*.gif binary
12+
*.ico binary
13+
*.png binary
14+
*.jpg binary
15+
*.jpeg binary
16+
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

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: CI
2+
3+
permissions:
4+
contents: read
5+
6+
on: ['push', 'pull_request']
7+
8+
jobs:
9+
ci:
10+
runs-on: ${{ matrix.os }}
11+
continue-on-error: ${{ matrix.experimental }}
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
os: [ubuntu-latest]
16+
php: [8.2, 8.3, 8.4]
17+
dependencies: [lowest, highest]
18+
experimental: [false]
19+
name: 👷 CI PHP-${{ matrix.php }} ${{ matrix.dependencies }} on ${{ matrix.os }}
20+
21+
steps:
22+
- name: 🚚 Get latest code
23+
uses: actions/checkout@v4
24+
25+
- name: 📂 Cache dependencies
26+
id: composer-cache
27+
run: |
28+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
29+
- uses: actions/cache@v3
30+
with:
31+
path: ${{ steps.composer-cache.outputs.dir }}
32+
key: ${{ runner.os }}-dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
33+
restore-keys: |
34+
${{ runner.os }}-dependencies-php-${{ matrix.php }}-composer-
35+
36+
- name: ⚡️ Setup PHP
37+
uses: shivammathur/setup-php@v2
38+
with:
39+
php-version: ${{ matrix.php }}
40+
extensions: curl, dom, gd, intl, mbstring, openssl, tokenizer, zip
41+
ini-values: error_reporting=E_ALL
42+
tools: composer:v2, php-cs-fixer, phpunit, vimeo/psalm
43+
coverage: pcov
44+
45+
- name: 🍱 Install Composer dependencies
46+
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist
47+
48+
- name: ✅ Check code lint
49+
run: composer lint
50+
51+
- name: ⚗️ Run static analysis
52+
run: |
53+
composer verify
54+
composer analyse
55+
composer inspect
56+
57+
- name: 🧪 Run unit tests
58+
run: composer test
59+
60+
- name: 🐛 Check all code bugs
61+
run: composer debug

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Build
2+
build/
3+
dist/
4+
out/
5+
6+
# Development
7+
/node_modules/
8+
/vendor/
9+
.yarn/*
10+
!.yarn/releases
11+
Homestead.json
12+
Homestead.yaml
13+
.phpactor.json
14+
*.local
15+
16+
# Environment
17+
.env
18+
.env.backup
19+
20+
# Cache
21+
*.cache
22+
.mf
23+
.rollup.cache
24+
tsconfig.tsbuildinfo
25+
26+
# Logs
27+
logs/
28+
*.log
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
pnpm-debug.log*
33+
lerna-debug.log*
34+
error_log*
35+
36+
# Editor
37+
.vscode/*
38+
!.vscode/extensions.json
39+
.idea/
40+
.DS_Store
41+
*.suo
42+
*.ntvs*
43+
*.njsproj
44+
*.sln
45+
*.sw?
46+
47+
# Tests
48+
/test-results/
49+
/playwright-report/
50+
/playwright/.cache/

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release Notes for the Sikessem Skeleton
2+
3+
All notable changes to [Skeleton](https://github.com/sikessem/skeleton) will be documented in this file.
4+
5+
## [Unreleased](https://github.com/sikessem/skeleton/compare/v0.0.0...HEAD)
6+
7+
**Full Changelog:** [v0.0.0...v0.x](https://github.com/sikessem/skeleton/compare/v0.0.0...v0.x)

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2022 [Sigui Kessé Emmanuel](https://sigui.ci/) <[[email protected]](mailto:[email protected])>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)