Skip to content

Commit 5629e5c

Browse files
committed
feat: add github actions test for upcoming symfony version
1 parent fb5979b commit 5629e5c

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# OS: Linux; Symfony: upcoming (still unreleased) version; PHP: latest stable
2+
name: "Tests - Upcoming Symfony version (allowed to fail !)"
3+
4+
on: ["push", "pull_request"]
5+
6+
env:
7+
fail-fast: true
8+
9+
jobs:
10+
tests:
11+
runs-on: 'ubuntu-latest'
12+
continue-on-error: true
13+
steps:
14+
- name: 'Checkout code'
15+
uses: actions/checkout@v2.3.3
16+
17+
- name: 'Install PHP with extensions'
18+
uses: shivammathur/setup-php@2.7.0
19+
with:
20+
coverage: none
21+
php-version: '8.0'
22+
tools: composer:v2
23+
extensions: mbstring
24+
ini-values: date.timezone=UTC
25+
26+
- name: 'Install project dependencies'
27+
env:
28+
SYMFONY_REQUIRE: '6.0.x@dev'
29+
run: |
30+
composer global require --no-progress --no-scripts --no-plugins symfony/flex
31+
composer require symfony/phpunit-bridge
32+
composer config minimum-stability dev
33+
composer config prefer-stable false
34+
composer update --no-interaction --optimize-autoloader
35+
36+
- name: 'Run tests'
37+
env:
38+
SYMFONY_DEPRECATIONS_HELPER: 'weak'
39+
#SYMFONY_DEPRECATIONS_HELPER: 'max[indirect]=9999&max[direct]=0&max[self]=9999'
40+
run: vendor/bin/phpunit -v || exit 0

0 commit comments

Comments
 (0)