From f9bf6f9954029b88306ea22d9ce40355450ffdd9 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 24 Jan 2021 12:25:52 +0100 Subject: [PATCH] Fix building pickle.phar on Windows --- .github/workflows/test.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f38f8c36..b96141dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,12 +34,20 @@ jobs: run: composer install --prefer-source --optimize-autoloader --ansi --no-interaction --no-dev - name: Install Box run: composer global require 'kherge/box=~2.7' --prefer-source - - name: Build pickle.phar - run: ~/.composer/vendor/bin/box build + - name: Build pickle.phar on Ubuntu + if: startsWith(matrix.os, 'ubuntu') + run: | + "$(composer global config bin-dir --absolute)/box" build + - name: Build pickle.phar on Windows + if: startsWith(matrix.os, 'windows') + run: | + & "$(composer global config bin-dir --absolute)/box.bat" build - name: Install Composer dependencies (including dev, preferring dist) run: composer install --optimize-autoloader --ansi --no-interaction - name: Run Behat - run: PICKLE_BEHAT_PROCESS_TIMEOUT=0 vendor/bin/behat --format=progress + env: + PICKLE_BEHAT_PROCESS_TIMEOUT: 0 + run: vendor/bin/behat --format=progress - name: Download Ocular run: curl -sSLf -o ocular.phar https://scrutinizer-ci.com/ocular.phar - name: Upload code coverage