File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 59
59
- name : " [ Prepare Composer ]"
60
60
run : echo "OK"
61
61
62
+ - name : " Install Composer"
63
+ run : |
64
+ EXPECTED_SIGNATURE="$(curl -s https://composer.github.io/installer.sig)"
65
+ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
66
+ ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
67
+ if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]; then
68
+ >&2 echo 'ERROR: Invalid installer signature';
69
+ rm composer-setup.php
70
+ exit 1
71
+ fi
72
+ php composer-setup.php --quiet
73
+ rm composer-setup.php
74
+ mv composer.phar /usr/local/bin/composer
75
+ composer --version
76
+
62
77
# cache vendor for later use
63
78
- name : " -- Cache Composer packages"
64
79
id : composer-cache
@@ -69,11 +84,11 @@ jobs:
69
84
restore-keys : |
70
85
${{ runner.os }}-composer-vendors-
71
86
72
- # - name: " -- Install composer dependencies"
73
- # run: COMPOSER_PROCESS_TIMEOUT=3000 php /home/runner/work/my-dir-web/my-dir-web/protected/ composer.phar install
74
- #
75
- # - name: " -- Regenarate class mapping"
76
- # run: COMPOSER_PROCESS_TIMEOUT=3000 php /home/runner/work/my-dir-web/my-dir-web/protected/ composer.phar dump-autoload --optimize --classmap-authoritative
87
+ - name : " -- Install composer dependencies"
88
+ run : COMPOSER_PROCESS_TIMEOUT=3000 composer install
89
+
90
+ - name : " -- Regenarate class mapping"
91
+ run : COMPOSER_PROCESS_TIMEOUT=3000 composer dump-autoload --optimize --classmap-authoritative
77
92
78
93
79
94
# --------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments