-
Notifications
You must be signed in to change notification settings - Fork 941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed SQLite version in CI. #643
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ env: | |
|
||
jobs: | ||
build: | ||
runs-on: 'ubuntu-20.04' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -35,11 +35,20 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Upgrade sqlite3 | ||
run: | | ||
wget https://www.sqlite.org/2024/sqlite-autoconf-3450300.tar.gz -O /tmp/sqlite.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. GHA images do not have the latest version of SQLite yet. We need to build it from source. This may need to be optimised later. Will be removed once SQLite is added to GHA images There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
tar -xzf /tmp/sqlite.tar.gz -C /tmp | ||
cd /tmp/sqlite-autoconf-3450300 | ||
./configure CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" --prefix=/usr/local | ||
make && sudo make install | ||
sudo ldconfig | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: gd, pdo_sqlite | ||
extensions: gd, sqlite, pdo_sqlite | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. explicitly call out |
||
|
||
- name: Update composer | ||
run: composer --verbose self-update --${{ matrix.composer-channel }} | ||
|
@@ -54,7 +63,7 @@ jobs: | |
run: composer --verbose install | ||
|
||
- if: matrix.drupal-release == 'dev' | ||
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 | ||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is an oversight that should have been addressed in my previous PR. sorry |
||
|
||
- if: matrix.drupal-release == 'dev' | ||
run: composer --verbose update | ||
|
@@ -66,6 +75,6 @@ jobs: | |
- run: until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null | ||
|
||
- name: Run a single unit test to verify the testing setup. | ||
run: ./vendor/bin/phpunit -c ./web/core ./web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php | ||
run: ./vendor/bin/phpunit -c ./web/core $(pwd)/web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Latest D11-dev changed the way the relative path discovered. Using absolute for now. This change is not relevant to this project's functionality. https://www.drupal.org/project/drupal/issues/3417066 |
||
|
||
- run: ./vendor/bin/drush |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should run on latest by default. if needed - we can introduce running on older versions in another PR