Skip to content

Commit

Permalink
chore: move server logs to /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Oct 13, 2024
1 parent cc3fcf9 commit 3f8993e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ jobs:
TURBO_TOKEN: 'local'
TURBO_TEAM: 'local'

- name: 'Logs: cms'
run: cat /tmp/cms.log || true
if: always()
- name: 'Logs: website'
run: cat /tmp/website.log || true
if: always()
- name: 'Logs: preview'
run: cat /tmp/preview.log || true
if: always()

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test_without_turbo_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ jobs:
TURBO_TOKEN: 'local'
TURBO_TEAM: 'local'

- name: 'Logs: cms'
run: cat /tmp/cms.log || true
if: always()
- name: 'Logs: website'
run: cat /tmp/website.log || true
if: always()
- name: 'Logs: preview'
run: cat /tmp/preview.log || true
if: always()

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"scripts": {
"test:static": "tsc --noEmit && eslint '**/*.{ts,tsx,js,jsx}' --ignore-path='./.gitignore'",
"full-rebuild": "pnpm clean && pnpm build:gatsby",
"start:drupal": "pnpm run --filter @custom/cms start",
"start:drupal": "pnpm run --filter @custom/cms start >> /tmp/cms.log 2>&1",
"build:drupal": "CLOUDINARY_CLOUDNAME=test pnpm start-test start:drupal 8888 build:gatsby",
"build:gatsby": "gatsby build",
"build": "if node has-drupal.mjs; then pnpm build:drupal; else pnpm build:gatsby; fi",
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/playwright.config.decap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default defineConfig({
testDir: './specs/decap',
webServer: [
{
command: 'pnpm run --filter "@custom/website" serve',
command:
'pnpm run --filter "@custom/website" serve >> /tmp/website.log 2>&1',
port: 8000,
reuseExistingServer: !process.env.CI,
},
Expand Down
8 changes: 5 additions & 3 deletions tests/e2e/playwright.config.drupal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ export default defineConfig({
testDir: './specs/drupal',
webServer: [
{
command: 'pnpm run --filter "@custom/cms" start',
command: 'pnpm run --filter "@custom/cms" start >> /tmp/cms.log 2>&1',
port: 8888,
reuseExistingServer: !process.env.CI,
},
{
command: 'pnpm run --filter "@custom/website" serve',
command:
'pnpm run --filter "@custom/website" serve >> /tmp/website.log 2>&1',
port: 8000,
reuseExistingServer: !process.env.CI,
},
{
command: 'pnpm run --filter "@custom/preview" start',
command:
'pnpm run --filter "@custom/preview" start >> /tmp/preview.log 2>&1',
port: 8001,
reuseExistingServer: !process.env.CI,
},
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/playwright.config.webforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
testDir: './webform-snapshots',
webServer: [
{
command: 'pnpm run --filter "@custom/cms" start',
command: 'pnpm run --filter "@custom/cms" start >> /tmp/cms.log 2>&1',
port: 8888,
reuseExistingServer: !process.env.CI,
},
Expand Down
2 changes: 1 addition & 1 deletion tests/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"type": "module",
"scripts": {
"start": "pnpm run --filter @custom/cms start",
"start": "pnpm run --filter @custom/cms start >> /tmp/cms.log 2>&1",
"test:static": "tsc --noEmit && eslint '**/*.{ts,tsx,js,jsx}' --ignore-path='./.gitignore'",
"test:integration": "CI=true start-server-and-test 8888 vitest",
"test:integration:update": "CI=true start-server-and-test 8888 'vitest -u'",
Expand Down

0 comments on commit 3f8993e

Please sign in to comment.