Skip to content

Commit

Permalink
feat(mysql8): upgrade tests/ci to run on mysql8 and latest node
Browse files Browse the repository at this point in the history
  • Loading branch information
kschelonka committed Nov 17, 2023
1 parent 49843e6 commit 254c699
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,19 @@ jobs:
NODE_ENV: test
AWS_XRAY_LOG_LEVEL: silent
AWS_XRAY_CONTEXT_MISSING: LOG_ERROR
- image: mysql:5.6
- image: mysql:8.0
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
TZ: 'US/Central'
command:
- mysqld
- --sql_mode=NO_ENGINE_SUBSTITUTION
- --character-set-server=UTF8MB3
- --collation-server=utf8_unicode_ci
- --default_authentication_plugin=mysql_native_password
- image: cimg/node:20.9
auth:
username: $DOCKERHUB_USERNAME
Expand Down
2 changes: 2 additions & 0 deletions .docker/mysql/schema/schema.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CREATE DATABASE IF NOT EXISTS `readitla_ril-tmp`;
USE `readitla_ril-tmp`;

SET GLOBAL explicit_defaults_for_timestamp = 0;

CREATE TABLE `curated_feed_prospects` (
`prospect_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`feed_id` int(10) unsigned NOT NULL DEFAULT '0',
Expand Down
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- HOSTNAME_EXTERNAL=localstack

mysql:
image: mysql:5.6
image: mysql:8.0
env_file:
- ./.docker/local.env
ports:
Expand All @@ -40,3 +40,9 @@ services:
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- TZ=US/Central
command:
- mysqld
- --sql_mode=NO_ENGINE_SUBSTITUTION
- --character-set-server=UTF8MB3
- --collation-server=utf8_unicode_ci
- --default_authentication_plugin=mysql_native_password

0 comments on commit 254c699

Please sign in to comment.