File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,20 @@ jobs:
65
65
Some packages may require additional setup steps: setting up a web server to test an HTTP client, seeding a database or cache service, etc.
66
66
Other times, you may want to do additional reporting, particularly if the QA command failed.
67
67
68
- To enable this, you may create one or both of the following files in your package:
68
+ To enable this, you may create one or more of the following files in your package:
69
69
70
- - ` .laminas-ci/pre-run.sh`
70
+ - ` .laminas-ci/pre-install.sh`
71
+ - ` .laminas-ci/pre-run.sh`
71
72
- ` .laminas-ci/post-run.sh`
72
73
73
74
(Note : the files MUST be executable to be consumed!)
74
75
76
+ These runs immediately before any other command is being executed in this action.
77
+ The `.laminas-ci/pre-install.sh` command will receive the following arguments :
78
+ - `$1` : the user the QA command will run under
79
+ - `$2` : the WORKDIR path
80
+ - `$3` : the `$JOB` passed to the entrypoint (see above)
81
+
75
82
These run immediately before and after the QA command, respectively.
76
83
The `.laminas-ci/pre-run.sh` command will receive the following arguments :
77
84
Original file line number Diff line number Diff line change 157
157
echo " Marking PHP ${PHP} as configured default"
158
158
update-alternatives --set php /usr/bin/php${PHP}
159
159
160
+ # Is there a pre-install script available?
161
+ if [ -x " .laminas-ci/pre-install.sh" ]; then
162
+ echo " Executing pre-install commands from .laminas-ci/pre-install.sh"
163
+ ./.laminas-ci/pre-install.sh testuser " ${PWD} " " ${JOB} "
164
+ fi
165
+
160
166
echo " PHP version: $( php --version) "
161
167
echo " Installed extensions:"
162
168
php -m
You can’t perform that action at this time.
0 commit comments