Skip to content

Commit 8aa9fca

Browse files
committed
Add CI for macOS
1 parent 82e3b17 commit 8aa9fca

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,44 @@ jobs:
191191
docker run --rm -e COMPOSER_ROOT_VERSION -v $(pwd):/app -v $(which composer):/usr/local/bin/composer -v /usr/local/bin/vulcain:/usr/local/bin/vulcain -w /app php:7.4-alpine ./phpunit src/Symfony/Component/HttpClient/Tests/CurlHttpClientTest.php --filter testHttp2Push
192192
sudo rm -rf .phpunit
193193
[ -d .phpunit.bak ] && mv .phpunit.bak .phpunit
194+
195+
macOS:
196+
name: PHPUnit on macOS
197+
runs-on: macos-10.15
198+
env:
199+
SYMFONY_DEPRECATIONS_HELPER: weak
200+
201+
steps:
202+
- name: Checkout
203+
uses: actions/checkout@v2
204+
205+
- name: Setup PHP
206+
uses: shivammathur/setup-php@v2
207+
with:
208+
coverage: 'none'
209+
extensions: 'apcu'
210+
ini-values: 'memory_limit=-1'
211+
php-version: '8.0'
212+
tools: flex
213+
214+
- name: Setup Vulcain
215+
run: |
216+
curl https://github.com/dunglas/vulcain/releases/download/v0.1.4/vulcain_0.1.4_Darwin_x86_64.tar.gz -Lso /tmp/vulcain.tar.gz
217+
tar -xzf /tmp/vulcain.tar.gz -C /usr/local/bin vulcain
218+
rm /tmp/vulcain.tar.gz
219+
220+
- name: Configure composer
221+
run: |
222+
COMPOSER_HOME="$(composer config home)"
223+
composer self-update
224+
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
225+
echo "COMPOSER_ROOT_VERSION=$(grep -m1 SYMFONY_VERSION .travis.yml | grep -o '[0-9].[0-9x]').x-dev" >> $GITHUB_ENV
226+
227+
- name: Install dependencies
228+
run: composer update --no-progress --ansi
229+
230+
- name: Install PHPUnit
231+
run: ./phpunit install
232+
233+
- name: Run tests
234+
run: find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -print0 | xargs -0 -n1 dirname | sort | parallel ./phpunit --colors=always --exclude-group tty,benchmark,intl-data

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy