Skip to content

Commit a6949b8

Browse files
abnegateclaude
andcommitted
fix: add async library checkout to CI and regenerate composer.lock
All three CI workflows (CodeQL, Linter, Tests) were missing the checkout for the new utopia-php/async dependency, and the lock file was stale after composer.json added async, console, and bumped cli to 0.22.*. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 64b671e commit a6949b8

4 files changed

Lines changed: 162 additions & 83 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,25 @@ jobs:
2020
ref: feat-builder
2121
path: query
2222

23+
- name: Checkout async library
24+
uses: actions/checkout@v4
25+
with:
26+
repository: utopia-php/async
27+
path: async
28+
2329
- run: git checkout HEAD^2
2430
if: github.event_name == 'pull_request'
2531
working-directory: database
2632

2733
- name: Run CodeQL
2834
run: |
29-
docker run --rm -v $PWD/database:/app -v $PWD/query:/query -w /app -e COMPOSER_MIRROR_PATH_REPOS=1 php:8.4-cli-alpine sh -c \
35+
docker run --rm -v $PWD/database:/app -v $PWD/query:/query -v $PWD/async:/async -w /app -e COMPOSER_MIRROR_PATH_REPOS=1 php:8.4-cli-alpine sh -c \
3036
"php -r \"copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');\" && \
3137
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
3238
sed -i 's|\"url\": \"../query\"|\"url\": \"/query\"|' composer.json && \
39+
sed -i 's|\"url\": \"../async\"|\"url\": \"/async\"|' composer.json && \
3340
sed -i 's|\"symlink\": true|\"symlink\": false|' composer.json && \
3441
sed -i 's|\"url\": \"../query\"|\"url\": \"/query\"|' composer.lock && \
42+
sed -i 's|\"url\": \"../async\"|\"url\": \"/async\"|' composer.lock && \
3543
composer install --profile --ignore-platform-reqs && \
3644
composer check"

.github/workflows/linter.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,25 @@ jobs:
2020
ref: feat-builder
2121
path: query
2222

23+
- name: Checkout async library
24+
uses: actions/checkout@v4
25+
with:
26+
repository: utopia-php/async
27+
path: async
28+
2329
- run: git checkout HEAD^2
2430
if: github.event_name == 'pull_request'
2531
working-directory: database
2632

2733
- name: Run Linter
2834
run: |
29-
docker run --rm -v $PWD/database:/app -v $PWD/query:/query -w /app -e COMPOSER_MIRROR_PATH_REPOS=1 phpswoole/swoole:5.1.8-php8.3-alpine sh -c \
35+
docker run --rm -v $PWD/database:/app -v $PWD/query:/query -v $PWD/async:/async -w /app -e COMPOSER_MIRROR_PATH_REPOS=1 phpswoole/swoole:5.1.8-php8.3-alpine sh -c \
3036
"sed -i 's|\"url\": \"../query\"|\"url\": \"/query\"|' composer.json && \
37+
sed -i 's|\"url\": \"../async\"|\"url\": \"/async\"|' composer.json && \
3138
sed -i 's|\"symlink\": true|\"symlink\": false|' composer.json && \
3239
sed -i 's|\"url\": \"../query\"|\"url\": \"/query\"|' composer.lock && \
40+
sed -i 's|\"url\": \"../async\"|\"url\": \"/async\"|' composer.lock && \
3341
composer install --profile --ignore-platform-reqs && \
3442
if [ -L vendor/utopia-php/query ]; then rm vendor/utopia-php/query && cp -r /query vendor/utopia-php/query; fi && \
43+
if [ -L vendor/utopia-php/async ]; then rm vendor/utopia-php/async && cp -r /async vendor/utopia-php/async; fi && \
3544
composer lint"

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
ref: feat-builder
2828
path: query
2929

30+
- name: Checkout async library
31+
uses: actions/checkout@v4
32+
with:
33+
repository: utopia-php/async
34+
path: async
35+
3036
- name: Set up Docker Buildx
3137
uses: docker/setup-buildx-action@v3
3238

composer.lock

Lines changed: 137 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)