Skip to content

Commit 0d76b45

Browse files
authored
Merge pull request #76 from wayofdev/feat/updates
2 parents 244ed4c + 8c86113 commit 0d76b45

File tree

9 files changed

+750
-764
lines changed

9 files changed

+750
-764
lines changed

.github/dependabot.yml

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

.github/labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# this file is for the labeler workflow job
3+
# Documentation https://github.com/marketplace/actions/labeler
4+
5+
'type: documentation':
6+
- assets/**/*
7+
- .github/*
8+
- ./*.md
9+
10+
'type: maintenance':
11+
- .dependabot/*
12+
- .github/**/*
13+
- tests/**/*

.github/workflows/ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22

3-
name: ci
4-
53
on: # yamllint disable-line rule:truthy
64
push:
75
branches:
@@ -10,20 +8,24 @@ on: # yamllint disable-line rule:truthy
108
branches:
119
- master
1210

11+
name: 🔍 Continuous integration
12+
1313
jobs:
1414
integration:
15-
name: Testing on PHP ${{ matrix.php }} - ${{ matrix.os }}
15+
name: 🧪 Testing on PHP ${{ matrix.php }} - ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
fail-fast: true
1919
matrix:
2020
os: ["ubuntu-22.04"]
21-
php: ["8.1"]
21+
php: ["8.1", "8.2"]
2222
steps:
23-
- name: Check out the codebase
23+
- name: 📦 Check out the codebase
2424
uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0
2527

26-
- name: Setup PHP
28+
- name: 🛠️ Setup PHP
2729
uses: shivammathur/setup-php@v2
2830
with:
2931
php-version: ${{ matrix.php }}
@@ -32,24 +34,26 @@ jobs:
3234
tools: composer:v2
3335
coverage: none
3436

35-
- name: Load cached dependencies
37+
- name: ♻️ Load cached dependencies
3638
id: cached-composer-dependencies
3739
uses: actions/cache@v3
3840
with:
3941
path: vendor
4042
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
4143

42-
- name: Install dependencies
44+
- name: ⚙️ Install dependencies
4345
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
4446
run: composer install
4547

46-
- name: Run coding standards task
48+
- name: 🚨 Run coding standards task
4749
run: make cs-diff
50+
env:
51+
PHP_CS_FIXER_IGNORE_ENV: true
4852

49-
- name: Execute phpunit tests
53+
- name: 🧪 Execute phpunit tests
5054
run: make test
5155

52-
- name: Run static analysis using phpstan
56+
- name: 📝 Run static analysis using phpstan
5357
run: make stan
5458

5559
...
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
3+
# This is v2.0 of this workflow file
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches:
8+
- master
9+
pull_request_target:
10+
types: [ opened, synchronize, reopened ]
11+
12+
name: 📈 CodeSee architecture diagram
13+
14+
permissions: read-all
15+
16+
jobs:
17+
codesee:
18+
runs-on: ubuntu-latest
19+
continue-on-error: true
20+
name: 🔍 Analyze the repo with CodeSee
21+
steps:
22+
- uses: Codesee-io/codesee-action@v2
23+
with:
24+
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}

.github/workflows/label.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# This workflow will triage pull requests and apply a label based on the
3+
# paths that are modified in the pull request.
4+
#
5+
# To use this workflow, you will need to set up a .github/labeler.yml
6+
# file with configuration. For more information, see:
7+
# https://github.com/actions/labeler/blob/master/README.md
8+
9+
name: 🏷️ Add labels
10+
11+
on: # yamllint disable-line rule:truthy
12+
pull_request:
13+
14+
jobs:
15+
label:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 🏷️ Apply labels
19+
uses: actions/labeler@v4
20+
with:
21+
repo-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/release-please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ on: # yamllint disable-line rule:truthy
77
branches:
88
- master
99

10-
name: release-please
10+
name: 📦 Create release
1111

1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: google-github-actions/release-please-action@v3
16+
17+
- name: 🎉 Create release
18+
uses: google-github-actions/release-please-action@v3
1719
id: release
1820
with:
1921
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/shellcheck.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request:
5+
6+
name: 🐞 Differential shell-check
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
shellcheck:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: 📦 Check out the codebase
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
21+
- name: 🐞 Differential shell-check
22+
uses: redhat-plumbers-in-action/differential-shellcheck@v4
23+
with:
24+
severity: warning
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
...

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
],
1717
"require": {
1818
"php": "^8.1",
19-
"friendsofphp/php-cs-fixer": "^3.13.0"
19+
"friendsofphp/php-cs-fixer": "^3.14.4"
2020
},
2121
"require-dev": {
22-
"ergebnis/composer-normalize": "^2.28",
23-
"phpstan/extension-installer": "^1.1",
24-
"phpstan/phpstan": "^1.8",
25-
"phpstan/phpstan-deprecation-rules": "^1.0",
26-
"phpstan/phpstan-phpunit": "^1.2",
27-
"phpstan/phpstan-strict-rules": "^1.4",
28-
"phpunit/phpunit": "^9.5",
22+
"ergebnis/composer-normalize": "^2.30.2",
23+
"phpstan/extension-installer": "^1.2.0",
24+
"phpstan/phpstan": "^1.10.5",
25+
"phpstan/phpstan-deprecation-rules": "^1.1.2",
26+
"phpstan/phpstan-phpunit": "^1.3.10",
27+
"phpstan/phpstan-strict-rules": "^1.5.0",
28+
"phpunit/phpunit": "^9.6.5",
2929
"roave/security-advisories": "dev-latest"
3030
},
3131
"autoload": {

0 commit comments

Comments
 (0)