Skip to content

Commit ffe6ea0

Browse files
committed
Make compiling phar a CI job
1 parent f155c0e commit ffe6ea0

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/php.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,34 @@ jobs:
101101
run: php drupalorg project:link address
102102
- name: project:releases
103103
run: php drupalorg project:releases address
104+
105+
phar:
106+
runs-on: ubuntu-latest
107+
needs:
108+
- validate
109+
- phpstan
110+
steps:
111+
- uses: actions/checkout@v2
112+
- name: "Install PHP"
113+
uses: "shivammathur/setup-php@v2"
114+
with:
115+
coverage: "none"
116+
php-version: "7.4"
117+
tools: composer:v2
118+
- name: Get Composer Cache Directory
119+
id: composer-cache
120+
run: |
121+
echo "::set-output name=dir::$(composer config cache-files-dir)"
122+
- uses: actions/cache@v1
123+
with:
124+
path: ${{ steps.composer-cache.outputs.dir }}
125+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
126+
restore-keys: |
127+
${{ runner.os }}-composer-
128+
- name: Install dependencies
129+
run: composer install --prefer-dist --no-progress --no-suggest
130+
- name: Build phar
131+
run: |
132+
composer run box-install
133+
composer run box-build
134+
composer run box-info

0 commit comments

Comments
 (0)