Skip to content

Commit

Permalink
test: check if console log shows up on the previw site
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall committed Mar 3, 2024
1 parent d058bec commit 6c6a000
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deployment-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# .github/workflows/preview.yml
# .github/workflows/deployment-preview.yml
name: Deploy PR previews

on:
Expand All @@ -8,6 +8,7 @@ on:
- reopened
- synchronize
- closed
# TODO: should this be rerun on new commits?

concurrency: preview-${{ github.ref }}

Expand Down Expand Up @@ -36,14 +37,14 @@ jobs:
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./site
destination: ./_site
source: site
destination: _site
# End copy from a section of release-docs-and-schema.yml

- name: Deploy preview and post github comment
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./_site/
source-dir: _site

cleanup-preview-docs:
if: github.event.action == 'closed'
Expand All @@ -52,4 +53,4 @@ jobs:
- name: Cleanup pr-preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./_site/
source-dir: _site
2 changes: 2 additions & 0 deletions src/compile/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export interface CompileOptions {
* @returns An object containing the compiled Vega spec and normalized Vega-Lite spec.
*/
export function compile(inputSpec: TopLevelSpec, opt: CompileOptions = {}) {
console.log('Check if this is the preview site!', inputSpec);

// 0. Augment opt with default opts
if (opt.logger) {
// set the singleton logger to the provided logger
Expand Down

0 comments on commit 6c6a000

Please sign in to comment.