Skip to content

Commit 88805ac

Browse files
committed
Add CI for macOS.
1 parent b3c4d63 commit 88805ac

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
@@ -114,3 +114,44 @@ jobs:
114114
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
115115
sudo rm -rf .phpunit
116116
[ -d .phpunit.bak ] && mv .phpunit.bak .phpunit
117+
118+
macOS:
119+
name: PHPUnit on macOS
120+
runs-on: macos-10.15
121+
env:
122+
SYMFONY_DEPRECATIONS_HELPER: weak
123+
124+
steps:
125+
- name: Checkout
126+
uses: actions/checkout@v2
127+
128+
- name: Setup PHP
129+
uses: shivammathur/setup-php@v2
130+
with:
131+
coverage: 'none'
132+
extensions: 'apcu'
133+
ini-values: 'memory_limit=-1'
134+
php-version: '8.0'
135+
tools: flex
136+
137+
- name: Setup Vulcain
138+
run: |
139+
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
140+
tar -xzf /tmp/vulcain.tar.gz -C /usr/local/bin vulcain
141+
rm /tmp/vulcain.tar.gz
142+
143+
- name: Configure composer
144+
run: |
145+
COMPOSER_HOME="$(composer config home)"
146+
composer self-update
147+
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
148+
echo "COMPOSER_ROOT_VERSION=$(grep -m1 SYMFONY_VERSION .travis.yml | grep -o '[0-9.x]*').x-dev" >> $GITHUB_ENV
149+
150+
- name: Install dependencies
151+
run: composer update --no-progress --ansi
152+
153+
- name: Install PHPUnit
154+
run: ./phpunit install
155+
156+
- name: Run tests
157+
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