Skip to content

Commit db49fc4

Browse files
committed
Fixed SQLite version in CI.
1 parent 36386bd commit db49fc4

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
build:
15-
runs-on: 'ubuntu-20.04'
15+
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: false
1818
matrix:
@@ -35,11 +35,20 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@v2
3737

38+
- name: Upgrade sqlite3
39+
run: |
40+
wget https://www.sqlite.org/2024/sqlite-autoconf-3450300.tar.gz -O /tmp/sqlite.tar.gz
41+
tar -xzf /tmp/sqlite.tar.gz -C /tmp
42+
cd /tmp/sqlite-autoconf-3450300
43+
./configure CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" --prefix=/usr/local
44+
make && sudo make install
45+
sudo ldconfig
46+
3847
- name: Setup PHP
3948
uses: shivammathur/setup-php@v2
4049
with:
4150
php-version: ${{ matrix.php-versions }}
42-
extensions: gd, pdo_sqlite
51+
extensions: gd, sqlite, pdo_sqlite
4352

4453
- name: Update composer
4554
run: composer --verbose self-update --${{ matrix.composer-channel }}
@@ -54,7 +63,7 @@ jobs:
5463
run: composer --verbose install
5564

5665
- if: matrix.drupal-release == 'dev'
57-
run: composer --verbose require --no-update drupal/core-recommended:10.0.x-dev && composer --verbose require --no-update --dev drupal/core-dev:10.0.x-dev
66+
run: composer --verbose require --no-update drupal/core-recommended:11.0.x-dev && composer --verbose require --no-update --dev drupal/core-dev:11.0.x-dev
5867

5968
- if: matrix.drupal-release == 'dev'
6069
run: composer --verbose update
@@ -66,6 +75,6 @@ jobs:
6675
- run: until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
6776

6877
- name: Run a single unit test to verify the testing setup.
69-
run: ./vendor/bin/phpunit -c ./web/core ./web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php
78+
run: ./vendor/bin/phpunit -c ./web/core $(pwd)/web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php
7079

7180
- run: ./vendor/bin/drush

0 commit comments

Comments
 (0)