8000 Add a GitHub Action for tests against PHP 8.1 · symfony/symfony@de4f017 · GitHub
[go: up one dir, main page]

Skip to content

Commit de4f017

Browse files
committed
Add a GitHub Action for tests against PHP 8.1
1 parent 9066677 commit de4f017

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/tests.yml

Lines changed: 36 a 10000 dditions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,39 @@ 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+
nightly:
119+
name: PHPUnit on PHP nightly
120+
runs-on: Ubuntu-20.04
121+
122+
steps:
123+
- name: Checkout
124+
uses: actions/checkout@v2
125+
126+
- name: Setup PHP
127+
uses: shivammathur/setup-php@v2
128+
with:
129+
coverage: "none"
130+
ini-values: "memory_limit=-1"
131+
php-version: "8.1"
132+
133+
- name: Configure composer
134+
run: |
135+
COMPOSER_HOME="$(composer config home)"
136+
composer self-update
137+
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
138+
echo "COMPOSER_ROOT_VERSION=$(grep -m1 SYMFONY_VERSION .travis.yml | grep -o '[0-9.x]*').x-dev" >> $GITHUB_ENV
139+
140+
- name: Install dependencies
141+
run: |
142+
echo "::group::fake PHP version"
143+
composer config platform.php 8.0.99
144+
echo "::group::composer update"
145+
composer update --no-progress --ansi
146+
echo "::endgroup::"
147+
echo "::group::install phpunit"
148+
./phpunit install
149+
echo "::endgroup::"
150+
151+
- name: Run tests
152+
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-dat

0 commit comments

Comments
 (0)
0