-
-
Notifications
You must be signed in to change notification settings - Fork 40
39 lines (33 loc) · 942 Bytes
/
bare_run.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Bare Run on various PHP versions
on:
push:
tags:
- '*'
jobs:
bare_run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@v3
-
id: check_tag
run: |
MESSAGE=$(git tag -l --format='%(contents)' $(git describe --tags $(git rev-list --tags --max-count=1)))
if echo $MESSAGE | grep -q "PHP 7.2 downgraded"; then
echo "NEEDED_DOWNGRADE=1" >> $GITHUB_ENV
else
echo "NEEDED_DOWNGRADE=0" >> $GITHUB_ENV
fi
-
name: Setup PHP And Run Monorepo
if: env.NEEDED_DOWNGRADE == '1'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
-
if: env.NEEDED_DOWNGRADE == '1'
run: php bin/monorepo-builder list --ansi