You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-14Lines changed: 53 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# Generate PHP project classes list file action
4
4
5
-
GitHub action to generate a file with [PHP](https://php.net) project classes list (works only with [composer](https://getcomposer.org) projects)
5
+
GitHub action to generate a file with [PHP](https://php.net) project classes list (works only with [composer](https://getcomposer.org) projects). Built with Node.js 20.
| output_file | Yes | | File where to write classes list |
54
+
| project_path | No | . | Path to the directory containing composer.json |
55
+
56
+
## Development
57
+
58
+
### Setup
59
+
60
+
```bash
61
+
# Install dependencies
62
+
npm install
63
+
64
+
# Pack the action
65
+
npm run pack
66
+
67
+
# Run tests
68
+
npm test
69
+
70
+
# Lint code (both source and tests)
71
+
npm run lint
72
+
73
+
# Fix lint issues (both source and tests)
74
+
npm run lint:fix
75
+
76
+
# Run all checks (lint, pack, test)
77
+
npm run all
78
+
```
79
+
80
+
### Packaging
81
+
82
+
This action uses [ncc](https://github.com/vercel/ncc) to compile the Node.js code and dependencies into a single file in the `dist/` folder. This allows the action to run quickly and reliably.
83
+
84
+
After making changes to the code, you should run:
85
+
86
+
```bash
87
+
npm run pack
88
+
```
89
+
90
+
The `dist/` folder should be committed to the repository. This is a requirement for GitHub Actions so that users can run the action without having to build it themselves.
52
91
53
-
## How to contribute?
92
+
## How to contribute?
54
93
55
94
If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try [interactive GitHub tutorial](https://skills.github.com).
0 commit comments