File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -78,19 +78,23 @@ jobs:
7878 --health-interval=10s
7979 --health-timeout=5s
8080 --health-retries=3
81- env :
82- DB_DISPLAY_NAME : >-
83- ${{ format(
84- '{0}{1}',
85- matrix.db_engine,
86- matrix.db_engine == 'mysql' && matrix.mysql != '' ? ' ' + matrix.mysql : ''
87- ) }}
8881
8982 name : Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php }} / DB ${{ env.DB_DISPLAY_NAME }}
9083
9184 steps :
9285 - uses : actions/checkout@v4
9386
87+ - name : Set DB_DISPLAY_NAME
88+ run : |
89+ if [[ "${{ matrix.db_engine }}" == "mysql" && "${{ matrix.mysql }}" != "" ]]; then
90+ echo "DB_DISPLAY_NAME=${{ matrix.db_engine }} ${{ matrix.mysql }}" >> $GITHUB_ENV
91+ else
92+ echo "DB_DISPLAY_NAME=${{ matrix.db_engine }}" >> $GITHUB_ENV
93+ fi
94+
95+ - name : Show job name
96+ run : echo "Running on Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php }} / DB $DB_DISPLAY_NAME"
97+
9498 - name : Set up PHP
9599 uses : shivammathur/setup-php@v2
96100 with :
You can’t perform that action at this time.
0 commit comments