Skip to content

Commit f249027

Browse files
committed
feat(init): This is where it all begins...
chore(readme): Add badges
0 parents  commit f249027

38 files changed

+12234
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
coverage:
10+
name: "Generate code coverage"
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: 8.2
21+
- name: Build package
22+
run: composer install --no-interaction --no-progress
23+
- name: PHPUnit
24+
run: ./vendor/bin/phpunit tests --coverage-clover clover.xml
25+
- name: Generate Badge
26+
uses: timkrase/[email protected]
27+
with:
28+
coverage_badge_path: output/coverage.svg
29+
push_badge: false
30+
31+
- name: Push Badge
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
publish_dir: ./output
35+
publish_branch: image-data
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
user_name: 'github-actions[bot]'
38+
user_email: 'github-actions[bot]@users.noreply.github.com'
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Quality Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
checks:
13+
name: "Pass code along quality checks"
14+
strategy:
15+
matrix:
16+
version:
17+
- '8.1'
18+
- '8.2'
19+
- '8.3'
20+
os:
21+
- ubuntu-latest
22+
- windows-latest
23+
runs-on: ${{ matrix.os }}
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.version }}
31+
extensions: fileinfo
32+
- name: Build package
33+
run: composer install --no-interaction --no-progress
34+
- name: Code Style Linter
35+
run: ./vendor/bin/phpcs --standard=phpcs.xml --colors -sp
36+
- name: PHPStan
37+
run: ./vendor/bin/phpstan analyse --no-progress --configuration=phpstan.neon
38+
- name: PHPUnit
39+
run: ./vendor/bin/phpunit tests

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Quality Check"]
6+
types: [completed]
7+
branches:
8+
- 'master'
9+
10+
11+
jobs:
12+
release:
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
name: "Release new package version"
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Publish Tag
22+
id: semantic
23+
uses: cycjimmy/semantic-release-action@v4
24+
with:
25+
extra_plugins: |
26+
@semantic-release/commit-analyzer
27+
@semantic-release/release-notes-generator
28+
@semantic-release/changelog
29+
@semantic-release/git
30+
env:
31+
GITHUB_TOKEN: ${{ github.token }}
32+
- name: Publish release
33+
if: steps.semantic.outputs.new_release_published == 'true'
34+
uses: ncipollo/release-action@v1
35+
with:
36+
name: ${{ steps.semantic.outputs.new_release_version }}
37+
body: ${{ steps.semantic.outputs.new_release_notes }}
38+
tag: ${{ steps.semantic.outputs.new_release_git_tag }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
vendor
3+
.phpcs.cache
4+
.phpunit.cache
5+
clover.xml

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/blade.xml

Lines changed: 118 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeception.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/git_toolbox_prj.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)