@@ -147,7 +147,7 @@ jobs:
147147 node-version : 22.17.1
148148
149149 - name : Install dependencies
150- run : yarn install --frozen-lockfile
150+ run : composer install
151151 working-directory : .vortex/tests
152152
153153 - name : Install Ahoy
@@ -158,85 +158,11 @@ jobs:
158158 ahoy --version
159159
160160 - name : Run tests
161- run : ./tests/test.workflow.sh
162- working-directory : .vortex
163- env :
164- TEST_VORTEX_DEBUG : ${{ vars.TEST_VORTEX_DEBUG }}
165-
166- - name : Upload coverage report as an artifact
167- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
168- with :
169- name : ${{github.job}}-${{ matrix.batch }}-code-coverage-report
170- path : /tmp/.vortex-coverage-html
171- include-hidden-files : true
172- if-no-files-found : error
173-
174- - name : Upload coverage report to Codecov
175- uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5
176- with :
177- directory : /tmp/.vortex-coverage-html
178- fail_ci_if_error : false
179- env :
180- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
181-
182- vortex-test-deployment :
183- runs-on : ubuntu-latest
184-
185- strategy :
186- fail-fast : false
187- matrix :
188- batch : [0, 1]
189-
190- container :
191- image : drevops/ci-runner:25.10.0@sha256:03f2722e141b4939b390abad9443ed96304a8ec7bda0b2eab9dac56f9e9b7b91
192- env :
193- # Prevent GitHub overriding the Docker config.
194- DOCKER_CONFIG : /root/.docker
195- VORTEX_DOCTOR_CHECK_MINIMAL : 1
196- TEST_PACKAGE_TOKEN : ${{ secrets.TEST_PACKAGE_TOKEN }}
197- TEST_VORTEX_CONTAINER_REGISTRY_USER : ${{ secrets.TEST_VORTEX_CONTAINER_REGISTRY_USER }}
198- TEST_VORTEX_CONTAINER_REGISTRY_PASS : ${{ secrets.TEST_VORTEX_CONTAINER_REGISTRY_PASS }}
199- VORTEX_DEV_VOLUMES_SKIP_MOUNT : 1
200- VORTEX_DEV_TEST_COVERAGE_DIR : /tmp/.vortex-coverage-html
201- TEST_NODE_INDEX : ${{ matrix.batch }}
202-
203- steps :
204- - name : Checkout code
205- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
206- with :
207- fetch-depth : 0
208- persist-credentials : false
209-
210- - name : Setup Node.js
211- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
212-
213- - name : Adjust git config to allow running git-related tests
214- run : git config --global safe.directory '*'
215-
216- - name : Generate test SSH key pair used for deployment tests
217161 run : |
218- mkdir -p "$HOME/.ssh"
219- ssh-keygen -t rsa -b 4096 -m PEM -N '' -f "$HOME/.ssh/id_rsa"
220- chmod 600 "$HOME/.ssh/id_rsa"
221- ssh-agent -a "${HOME}/ssh-agent.sock" > ssh-agent-output
222- export SSH_AUTH_SOCK="$(grep SSH_AUTH_SOCK ssh-agent-output | cut -d';' -f1 | cut -d= -f2)"
223- echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" >> "$GITHUB_ENV"
224-
225- - name : Install dependencies
226- run : yarn install --frozen-lockfile
162+ # Create an empty coverage directory to avoid errors. @see https://github.com/actions/upload-artifact/issues/255
163+ mkdir -p /tmp/.vortex-coverage-html && touch "/tmp/.vortex-coverage-html/.empty-$(date +%Y%m%d%H%M%S)"
164+ php -d memory_limit=-1 vendor/bin/phpunit phpunit --group="${TEST_NODE_INDEX:-*}"
227165 working-directory : .vortex/tests
228-
229- - name : Install Ahoy
230- run : |
231- version=2.4.0 && \
232- set -x && curl -L -o "/usr/local/bin/ahoy" "https://github.com/ahoy-cli/ahoy/releases/download/v${version}/ahoy-bin-$(uname -s)-amd64" && \
233- chmod +x /usr/local/bin/ahoy && \
234- ahoy --version
235-
236- - name : Run tests
237- run : ./tests/test.deployment.sh
238- working-directory : .vortex
239- timeout-minutes : 10
240166 env :
241167 TEST_VORTEX_DEBUG : ${{ vars.TEST_VORTEX_DEBUG }}
242168
0 commit comments