Skip to content

Commit 150488b

Browse files
committed
Add CI for macOS.
1 parent be8fd56 commit 150488b

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
@@ -96,3 +96,44 @@ jobs:
9696
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
9797
sudo rm -rf .phpunit
9898
[ -d .phpunit.bak ] && mv .phpunit.bak .phpunit
99+
100+
macOS:
101+
name: PHPUnit on macOS
102+
runs-on: macos-10.15
103+
env:
104+
SYMFONY_DEPRECATIONS_HELPER: weak
105+
106+
steps:
107+
- name: Checkout
108+
uses: actions/checkout@v2
109+
110+
- name: Setup PHP
111+
uses: shivammathur/setup-php@v2
112+
with:
113+
coverage: 'none'
114+
extensions: 'apcu'
115+
ini-values: 'memory_limit=-1'
116+
php-version: '7.4'
117+
tools: flex
118+
119+
- name: Setup Vulcain
120+
run: |
121+
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
122+
tar -xzf /tmp/vulcain.tar.gz -C /usr/local/bin vulcain
123+
rm /tmp/vulcain.tar.gz
124+
125+
- name: Configure composer
126+
run: |
127+
([ -d ~/.composer ] || mkdir ~/.composer) && cp .github/composer-config.json ~/.composer/config.json
128+
SYMFONY_VERSION=$(cat composer.json | grep '"branch-version":\s*"[0-9]*\.[0-9]*"' | grep -o '[0-9]*\.[0-9]*')
129+
echo "SYMFONY_VERSION=$SYMFONY_VERSION" >> $GITHUB_ENV
130+
echo "COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev" >> $GITHUB_ENV
131+
132+
- name: Install dependencies
133+
run: composer update --no-progress --ansi
134+
135+
- name: Install PHPUnit
136+
run: ./phpunit install
137+
138+
- name: Run tests
139+
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