Skip to content

Commit 3d1d328

Browse files
committed
feat: add Github Actions support.
1 parent 28a01d1 commit 3d1d328

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/php.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,24 @@ jobs:
4545

4646
- name: Run PHPStan
4747
run: composer phpstan
48+
49+
- create-class-diagram:
50+
runs-on: ubuntu-latest
51+
name: Create class diagram
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
56+
- name: Create class diagram
57+
id: create-class-diagram
58+
uses: smeghead/php-class-diagram-gh-action@v0
59+
with:
60+
target-path: src/DiagramElement
61+
output-path: php-class-diagram.png
62+
63+
- name: Upload Artifact
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: Class_Diagram
67+
path: php-class-diagram.png
68+
retention-days: 5

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ $ bin/php-class-diagram --division-diagram test/fixtures/enum/
281281

282282
![PlantUML output image.](doc/images/output-division.png)
283283

284+
## Github Actions support
285+
286+
The following repository provides actions for generating class diagrams using php-class-diagram in Github Actions workflows.
287+
288+
[smeghead/php-class-diagram-gh-action](https://github.com/smeghead/php-class-diagram-gh-action)
289+
290+
284291
## Development
285292

286293
### Open shell

0 commit comments

Comments
 (0)