Skip to content

Commit 13f2fcb

Browse files
committed
git sUse updated calls of GH actions api
# Conflicts: # .github/workflows/ci.yml Fix the schema
1 parent 5ec53c8 commit 13f2fcb

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Composer get cache directory
7575
id: composer-cache
76-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
76+
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
7777

7878
- name: Composer cache dependencies
7979
uses: actions/cache@v4
@@ -122,11 +122,11 @@ jobs:
122122
- name: Run tests
123123
shell: 'script -q -e -c "bash {0}"'
124124
run: |
125-
if [[ ${{ matrix.php-version }} == '7.4' && ${{ matrix.symfony-version == '5-max' }} ]]; then
126-
export CODECOVERAGE=1 && vendor/bin/phpunit -c tests/${{ matrix.db-type }}.phpunit.xml --verbose --coverage-clover=tests/coverage.xml
127-
else
128-
vendor/bin/phpunit -c tests/${{ matrix.db-type }}.phpunit.xml
129-
fi
125+
if [[ ${{ matrix.php-version }} == '7.4' && ${{ matrix.symfony-version }} == '5-max' ]]; then
126+
export CODECOVERAGE=1 && vendor/bin/phpunit -c tests/${{ matrix.db-type }}.phpunit.xml --verbose --coverage-clover=tests/coverage.xml
127+
else
128+
vendor/bin/phpunit -c tests/${{ matrix.db-type }}.phpunit.xml
129+
fi
130130
env:
131131
SYMFONY_VERSION: ${{ matrix.symfony-version }}
132132

@@ -153,7 +153,7 @@ jobs:
153153
- name: Composer get cache directory
154154
id: composer-cache
155155
run: |
156-
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
156+
echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
157157
158158
- name: Composer cache
159159
uses: actions/cache@v4

tests/Fixtures/bookstore/schema.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@
323323
<foreign-key foreignTable="book" onDelete="setnull" phpName="Work">
324324
<reference local="prize_book_id" foreign="id"/>
325325
</foreign-key>
326+
<!-- Add this unique constraint as a fallback -->
327+
<unique>
328+
<unique-column name="bookstore_id"/>
329+
<unique-column name="contest_id"/>
330+
</unique>
326331
</table>
327332

328333
<table name="bookstore_contest_entry" reloadOnInsert="true">

0 commit comments

Comments
 (0)