File tree Expand file tree Collapse file tree 5 files changed +93
-34
lines changed
Expand file tree Collapse file tree 5 files changed +93
-34
lines changed Original file line number Diff line number Diff line change 1+ * @ leviy/developers
Original file line number Diff line number Diff line change 1+ name : Deploy
2+ on :
3+ push :
4+ release :
5+ # Every published release will trigger a distribution app build which will
6+ # added to the release a asset.
7+ types : [published]
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : checkout
14+ uses : actions/checkout@v2
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Setup PHP with Composer v1
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : ' 7.2'
22+ tools : composer:v1
23+
24+ - name : Get Composer Cache Directory
25+ id : composer-cache
26+ run : |
27+ echo "::set-output name=dir::$(composer config cache-files-dir)"
28+ - uses : actions/cache@v2
29+ with :
30+ path : ${{ steps.composer-cache.outputs.dir }}
31+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
32+ restore-keys : |
33+ ${{ runner.os }}-composer-
34+
35+ - name : Create build
36+ run : make dist
37+ - uses : actions/upload-release-asset@v1
38+ if : github.event_name == 'release'
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ with :
42+ upload_url : ${{ github.event.release.upload_url }}
43+ asset_path : build/release-tool.phar
44+ asset_name : release-tool.phar
45+ asset_content_type : application/zip
Original file line number Diff line number Diff line change 1+ name : Test
2+ on : push
3+
4+ jobs :
5+ test :
6+ runs-on : ubuntu-latest
7+ steps :
8+ - name : checkout
9+ uses : actions/checkout@v2
10+
11+ - name : Setup PHP with Composer v1
12+ uses : shivammathur/setup-php@v2
13+ with :
14+ php-version : ' 7.2'
15+ tools : composer:v1
16+
17+ - name : Get Composer Cache Directory
18+ id : composer-cache
19+ run : |
20+ echo "::set-output name=dir::$(composer config cache-files-dir)"
21+ - uses : actions/cache@v2
22+ with :
23+ path : ${{ steps.composer-cache.outputs.dir }}
24+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+ restore-keys : |
26+ ${{ runner.os }}-composer-
27+
28+ - name : Composer Install
29+ run : composer install --no-interaction --no-progress --no-ansi
30+
31+ - name : Test
32+ run : make static-analysis unit-tests acceptance-tests coding-standards
33+
34+ - name : Integration tests
35+ run : |
36+ git config --global user.name "github-actions"
37+ git config --global user.email "github-actions@github.com"
38+ make integration-tests
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments