From 3fb545c00db40bccc82bd9153bbf06229908d710 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 16:30:47 +0200 Subject: [PATCH 01/13] Add simple Quarto file to test --- file.qmd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 file.qmd diff --git a/file.qmd b/file.qmd new file mode 100644 index 0000000..5e83759 --- /dev/null +++ b/file.qmd @@ -0,0 +1,20 @@ +--- +title: Testing Quarto +author: Roger Bramon +--- + +# Purpose + +Try to reproduce issue described [here](https://github.com/quarto-dev/quarto-actions/issues/45#issuecomment-1245488165) + +Mermaid diagram could be the cause of the problem: + + +```{mermaid} +graph TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[fa:fa-car Car] +``` \ No newline at end of file From f6d7e467e066f85f445b87a67a25fcaac33c7bb6 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 16:31:01 +0200 Subject: [PATCH 02/13] Add workflow to generate PDF --- .github/workflows/generate-pdf.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/generate-pdf.yml diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml new file mode 100644 index 0000000..7fcf830 --- /dev/null +++ b/.github/workflows/generate-pdf.yml @@ -0,0 +1,27 @@ +name: Generate PDF +on: + pull_request: + types: [opened, synchronize, reopened, labeled] + +jobs: + generate-pdf: + - name: Setup Quarto + uses: quarto-dev/quarto-actions/setup@v2 + with: + tinytex: true + + - name: Quarto check + run: | + quarto check --log-level info + + - name: Render Quarto Project + uses: quarto-dev/quarto-actions/render@v2 + with: + to: pdf + path: file.qmd + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.0 + with: + name: file.pdf + path: file.pdf \ No newline at end of file From b4184816e33b2c1f055cfc6dd05a00573b6861a4 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 16:34:06 +0200 Subject: [PATCH 03/13] Fix workflow --- .github/workflows/generate-pdf.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 7fcf830..a0e5124 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -5,6 +5,8 @@ on: jobs: generate-pdf: + runs-on: ubuntu-latest + steps: - name: Setup Quarto uses: quarto-dev/quarto-actions/setup@v2 with: From 3b7c7b75d666856fcb27035057927e57c2e54dfb Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 16:37:56 +0200 Subject: [PATCH 04/13] Checkout action was missing --- .github/workflows/generate-pdf.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index a0e5124..176cbd1 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -7,6 +7,7 @@ jobs: generate-pdf: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: Setup Quarto uses: quarto-dev/quarto-actions/setup@v2 with: From 41ff4c2d117ed975838f89e4753c6b70b6c5f7cc Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 17:57:31 +0200 Subject: [PATCH 05/13] Try forcing Ubuntu 22 --- .github/workflows/generate-pdf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 176cbd1..144eab3 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -5,7 +5,7 @@ on: jobs: generate-pdf: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Setup Quarto From e92c4aca1131ccce0f10178753c5b836b7b88c61 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 18:00:40 +0200 Subject: [PATCH 06/13] Install chromium --- .github/workflows/generate-pdf.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 144eab3..1a708a2 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -13,6 +13,10 @@ jobs: with: tinytex: true + - name: Install chromium + run: | + quarto install tool chromium + - name: Quarto check run: | quarto check --log-level info From 04d79f3f923eee81074f14c9c03d2c3f1bc4edd7 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 18:38:56 +0200 Subject: [PATCH 07/13] Check chrome installations --- .github/workflows/generate-pdf.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 1a708a2..7758b9a 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -13,10 +13,16 @@ jobs: with: tinytex: true - - name: Install chromium + - name: Check chrome run: | - quarto install tool chromium + echo $(which google-chrome) + $(which google-chrome) --headless https://www.chromestatus.com + - name: Check chromium + run: | + echo $(which chromium-browser) + $(which chromium-browser) --headless https://www.chromestatus.com + - name: Quarto check run: | quarto check --log-level info From 22c6be987ce176ac072a61f619127708a97bc382 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 13 Sep 2022 18:57:55 +0200 Subject: [PATCH 08/13] Only test chrome --- .github/workflows/generate-pdf.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 7758b9a..574af8f 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -16,16 +16,7 @@ jobs: - name: Check chrome run: | echo $(which google-chrome) - $(which google-chrome) --headless https://www.chromestatus.com - - - name: Check chromium - run: | - echo $(which chromium-browser) - $(which chromium-browser) --headless https://www.chromestatus.com - - - name: Quarto check - run: | - quarto check --log-level info + $(which google-chrome) --headless --single-process https://www.chromestatus.com - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 From e7fab35df1e3d212e9a21184e8918af0ffbb8238 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 20 Sep 2022 09:50:44 +0200 Subject: [PATCH 09/13] Use pre-release version with more detailed info. --- .github/workflows/generate-pdf.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 574af8f..baa8f9b 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -5,13 +5,14 @@ on: jobs: generate-pdf: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup Quarto uses: quarto-dev/quarto-actions/setup@v2 with: tinytex: true + version: 1.2.134 - name: Check chrome run: | From 78d8e3153abfb5031ba404dc419cbd88b551e5ad Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Tue, 20 Sep 2022 09:52:33 +0200 Subject: [PATCH 10/13] Avoid calling chrome before --- .github/workflows/generate-pdf.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index baa8f9b..897ff95 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -13,12 +13,7 @@ jobs: with: tinytex: true version: 1.2.134 - - - name: Check chrome - run: | - echo $(which google-chrome) - $(which google-chrome) --headless --single-process https://www.chromestatus.com - + - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 with: From a8f4a308710c9a85f027f25e2cbd97628fa602b9 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Fri, 12 May 2023 06:21:38 +0200 Subject: [PATCH 11/13] Use latest Quarto version --- .github/workflows/generate-pdf.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 897ff95..93863ea 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -12,7 +12,6 @@ jobs: uses: quarto-dev/quarto-actions/setup@v2 with: tinytex: true - version: 1.2.134 - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 @@ -24,4 +23,4 @@ jobs: uses: actions/upload-artifact@v3.1.0 with: name: file.pdf - path: file.pdf \ No newline at end of file + path: file.pdf From 8b86adc62b52849aac3cfad193fc373adc3406a2 Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Mon, 22 May 2023 17:51:01 +0200 Subject: [PATCH 12/13] Add chromium check --- .github/workflows/generate-pdf.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 93863ea..6b4e368 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -12,7 +12,10 @@ jobs: uses: quarto-dev/quarto-actions/setup@v2 with: tinytex: true - + - name: Check chromium + run: | + echo $(which chromium-browser) + $(which chromium-browser) --headless https://www.chromestatus.com - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 with: From 6fd1e70e2fc552a226d1a8d12aa1d729052ef2cc Mon Sep 17 00:00:00 2001 From: Roger Bramon Date: Thu, 25 May 2023 11:37:09 +0200 Subject: [PATCH 13/13] Remove check chromium step --- .github/workflows/generate-pdf.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 6b4e368..3991111 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -12,10 +12,6 @@ jobs: uses: quarto-dev/quarto-actions/setup@v2 with: tinytex: true - - name: Check chromium - run: | - echo $(which chromium-browser) - $(which chromium-browser) --headless https://www.chromestatus.com - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 with: