File tree Expand file tree Collapse file tree 2 files changed +69
-25
lines changed Expand file tree Collapse file tree 2 files changed +69
-25
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ release :
8+ types : [created]
9+ schedule :
10+ - cron : ' 0 4 * * *'
11+
12+ jobs :
13+ tests :
14+ runs-on : ubuntu-latest
15+ name : Build and test
16+ strategy :
17+ matrix :
18+ php : [7.4]
19+ deps : [high]
20+ include :
21+ - php : 7.4
22+ deps : low
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+ with :
27+ fetch-depth : 0
28+
29+ - name : Setup PHP
30+ uses : shivammathur/setup-php@v2
31+ with :
32+ php-version : " ${{ matrix.php }}"
33+ ini-values : " phar.readonly=0"
34+
35+ - name : Test & package
36+ if : matrix.deps == 'high'
37+ run : make update test package test-package
38+
39+ - name : Test & package (low)
40+ if : matrix.deps == 'low'
41+ run : make update-min test-min package test-package
42+
43+ - name : Upload the phar
44+ uses : actions/upload-artifact@v1
45+ if : matrix.php == '7.4' && matrix.deps == 'high'
46+ with :
47+ name : zalas-phpunit-injector-extension.phar
48+ path : build/zalas-phpunit-injector-extension.phar
49+
50+ publish-phars :
51+ runs-on : ubuntu-latest
52+ name : Publish PHARs
53+ needs : tests
54+ if : github.event_name == 'release'
55+ steps :
56+ - name : Download the phar
57+ uses : actions/download-artifact@v1
58+ with :
59+ name : zalas-phpunit-injector-extension.phar
60+ path : .
61+ - name : Release the phar
62+ uses : actions/upload-release-asset@v1
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ with :
66+ upload_url : ${{ github.event.release.upload_url }}
67+ asset_path : ./zalas-phpunit-injector-extension.phar
68+ asset_name : zalas-phpunit-injector-extension.phar
69+ asset_content_type : application/zip
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments