Commit e415b01 1 parent 0d11f75 commit e415b01 Copy full SHA for e415b01
File tree 3 files changed +29
-33
lines changed
3 files changed +29
-33
lines changed Original file line number Diff line number Diff line change @@ -19,27 +19,27 @@ jobs:
19
19
- name : Setup PHP
20
20
uses : shivammathur/setup-php@v2
21
21
with :
22
- php-version : 5.4
22
+ php-version : 7.3
23
23
extensions : exif, phar, openssl
24
24
coverage : none
25
25
ini-values : phar.readonly=Off
26
26
27
- - name : Install Box from GitHub
28
- run : |
29
- curl -LSs https://box-project.github.io/box2/installer.php | php
30
- test -f ./box.phar
31
- test -d ~/bin || mkdir ~/bin
32
- mv ./box.phar ~/bin/box
33
- ~/bin/box -V
34
- echo "$HOME/bin" >> $GITHUB_PATH
35
-
36
27
- name : Install Composer dependencies
37
28
uses : ramsey/composer-install@v1
38
29
with :
39
30
composer-options : " --no-dev"
40
31
32
+ - name : Install Box
33
+ run : wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd
34
+
35
+ - name : Validate configuration
36
+ run : php box.phar validate -i box.json
37
+
41
38
- name : Building binary...
42
- run : box build -v
39
+ run : php box.phar compile -v --config=box.json
40
+
41
+ - name : Show info about the build phar with humbug/box
42
+ run : php box.phar info -l parallel-lint.phar
43
43
44
44
- uses : actions/upload-artifact@v2
45
45
with :
Original file line number Diff line number Diff line change @@ -45,27 +45,27 @@ jobs:
45
45
- name : Setup PHP
46
46
uses : shivammathur/setup-php@v2
47
47
with :
48
- php-version : 5.4
48
+ php-version : 7.3
49
49
extensions : exif, phar, openssl
50
50
coverage : none
51
51
ini-values : phar.readonly=Off, error_reporting=E_ALL, display_errors=On
52
52
53
- - name : Install Box from GitHub
54
- run : |
55
- curl -LSs https://box-project.github.io/box2/installer.php | php
56
- test -f ./box.phar
57
- test -d ~/bin || mkdir ~/bin
58
- mv ./box.phar ~/bin/box
59
- ~/bin/box -V
60
- echo "$HOME/bin" >> $GITHUB_PATH
61
-
62
53
- name : Install Composer dependencies
63
54
uses : ramsey/composer-install@v1
64
55
with :
65
56
composer-options : " --no-dev"
66
57
58
+ - name : Install Box
59
+ run : wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd
60
+
61
+ - name : Validate configuration
62
+ run : php box.phar validate -i box.json
63
+
67
64
- name : Building binary...
68
- run : box build -v
65
+ run : php box.phar compile -v --config=box.json
66
+
67
+ - name : Show info about the build phar with humbug/box
68
+ run : php box.phar info -l parallel-lint.phar
69
69
70
70
- uses : actions/upload-artifact@v2
71
71
with :
Original file line number Diff line number Diff line change 1
1
{
2
+ "base-path" : null ,
2
3
"output" : " parallel-lint.phar" ,
3
4
"chmod" : " 0755" ,
4
5
"compactors" : [
5
- " Herrera \\ Box\\ Compactor\\ Php"
6
+ " KevinGH \\ Box\\ Compactor\\ Php"
6
7
],
7
- "extract" : false ,
8
8
"main" : " parallel-lint" ,
9
+ "directories" : [
10
+ " bin" ,
11
+ " src"
12
+ ],
9
13
"files" : [
10
14
" LICENSE"
11
15
],
14
18
"name" : [" *.php" ],
15
19
"exclude" : [" Tests" , " tests" ],
16
20
"in" : " vendor"
17
- },
18
- {
19
- "exclude" : [" Tests" ],
20
- "in" : " src"
21
- },
22
- {
23
- "in" : " bin"
24
21
}
25
22
],
26
- "stub" : true ,
27
- "web" : false
23
+ "stub" : true
28
24
}
You can’t perform that action at this time.
0 commit comments