Skip to content

Commit

Permalink
Merge branch 'TryGhost:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekler authored Sep 23, 2024
2 parents be93b06 + 577362a commit 8d36f76
Show file tree
Hide file tree
Showing 319 changed files with 11,663 additions and 3,133 deletions.
12 changes: 11 additions & 1 deletion .github/scripts/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ const COMMAND_ADMIN = {
env: {}
};

const COMMAND_BROWSERTESTS = {
name: 'browser-tests',
command: 'nx run ghost:test:browser',
cwd: path.resolve(__dirname, '../../ghost/core'),
prefixColor: 'blue',
env: {}
};

const COMMAND_TYPESCRIPT = {
name: 'ts',
command: `while [ 1 ]; do nx watch --projects=${tsPackages} -- nx run \\$NX_PROJECT_NAME:build:ts; done`,
Expand Down Expand Up @@ -86,6 +94,8 @@ if (DASH_DASH_ARGS.includes('ghost')) {
commands = [COMMAND_GHOST, COMMAND_TYPESCRIPT];
} else if (DASH_DASH_ARGS.includes('admin')) {
commands = [COMMAND_ADMIN, ...COMMANDS_ADMINX];
} else if (DASH_DASH_ARGS.includes('browser-tests')) {
commands = [COMMAND_BROWSERTESTS, COMMAND_TYPESCRIPT];
} else {
commands = [COMMAND_GHOST, COMMAND_TYPESCRIPT, COMMAND_ADMIN, ...COMMANDS_ADMINX];
}
Expand Down Expand Up @@ -186,7 +196,7 @@ if (DASH_DASH_ARGS.includes('comments') || DASH_DASH_ARGS.includes('all')) {

async function handleStripe() {
if (DASH_DASH_ARGS.includes('stripe') || DASH_DASH_ARGS.includes('all')) {
if (DASH_DASH_ARGS.includes('offline')) {
if (DASH_DASH_ARGS.includes('offline') || DASH_DASH_ARGS.includes('browser-tests')) {
return;
}

Expand Down
13 changes: 3 additions & 10 deletions .github/scripts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
volumes:
# Turns out you can drop .sql or .sql.gz files in here, cool!
- ./mysql-preload:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql
healthcheck:
test: "mysql -uroot -proot ghost -e 'select 1'"
interval: 1s
Expand All @@ -27,13 +28,5 @@ services:
ports:
- "6379:6379"
restart: always
jaeger:
image: jaegertracing/all-in-one:1.58
container_name: ghost-jaeger
ports:
- "4318:4318"
- "16686:16686"
- "9411:9411"
restart: always
environment:
COLLECTOR_ZIPKIN_HOST_PORT: :9411
volumes:
mysql-data:
Loading

0 comments on commit 8d36f76

Please sign in to comment.