Skip to content

Commit

Permalink
Merge pull request #64 from smeghead/support-github-actions
Browse files Browse the repository at this point in the history
feat: add Github Actions support.
close #63
  • Loading branch information
smeghead authored May 29, 2024
2 parents 28a01d1 + a052e85 commit fa45007
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,24 @@ jobs:

- name: Run PHPStan
run: composer phpstan

create-class-diagram:
runs-on: ubuntu-latest
name: Create class diagram
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create class diagram
id: create-class-diagram
uses: smeghead/php-class-diagram-gh-action@v0
with:
target-path: src/DiagramElement
output-path: php-class-diagram.png

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Class_Diagram
path: php-class-diagram.png
retention-days: 5
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,13 @@ $ bin/php-class-diagram --division-diagram test/fixtures/enum/

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

## Github Actions support

The following repository provides actions for generating class diagrams using php-class-diagram in Github Actions workflows.

[smeghead/php-class-diagram-gh-action](https://github.com/smeghead/php-class-diagram-gh-action)


## Development

### Open shell
Expand Down

0 comments on commit fa45007

Please sign in to comment.