Skip to content

Commit bfb680a

Browse files
committed
fix ci
1 parent b7e5f06 commit bfb680a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/github-actions.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on: [push]
66
permissions:
77
contents: read
88

9-
env:
10-
REDIS_URL: redis://redis:6379
11-
129
jobs:
1310
build-docker-image:
1411
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/preprod' || github.ref == 'refs/heads/prod' || github.ref == 'refs/heads/feat/v2'
@@ -124,9 +121,11 @@ jobs:
124121
env:
125122
DATABASE_URL: mysql://root:[email protected]:${{ job.services.mysql.ports['3306'] }}/openchurch_test
126123
SYNCHRO_SECRET_KEY: secret
124+
REDIS_URL: redis://redis:6379
127125
- name: Execute tests (Unit and Feature tests) via PHPUnit
128126
run: vendor/bin/phpunit
129127
env:
128+
REDIS_URL: redis://redis:6379
130129
DATABASE_URL: mysql://root:[email protected]:${{ job.services.mysql.ports['3306'] }}/openchurch_test
131130
- name: phpstan
132131
if: always()
@@ -138,15 +137,18 @@ jobs:
138137
if: always()
139138
run: php bin/console lint:container
140139
env:
140+
REDIS_URL: redis://redis:6379
141141
- name: lint:yaml
142142
if: always()
143143
run: php bin/console lint:yaml config src
144144
env:
145+
REDIS_URL: redis://redis:6379
145146
- name: doctrine:schema:validate
146147
if: always()
147148
run: php bin/console doctrine:schema:validate -vvv
148149
env:
149150
DATABASE_URL: mysql://root:[email protected]:${{ job.services.mysql.ports['3306'] }}/openchurch_test
151+
REDIS_URL: redis://redis:6379
150152
- name: Archive logs as artifacts
151153
if: always()
152154
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)