Skip to content

Commit 753a357

Browse files
authored
Merge pull request #13278 from quarto-dev/backport/gha/check-preview-js
2 parents 9d2e7ee + 9bcbbd4 commit 753a357

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,16 @@ jobs:
285285
- run: |
286286
tar -zxf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz
287287
echo "$GITHUB_WORKSPACE/quarto-${{needs.configure.outputs.version}}/bin" >> $GITHUB_PATH
288+
289+
# Check for share/preview/quarto-preview.js
290+
- name: Ensure share/preview/quarto-preview.js exists
291+
shell: bash
292+
run: |
293+
if [ ! -f "share/preview/quarto-preview.js" ]; then
294+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
295+
exit 1
296+
fi
297+
288298
- run: |
289299
tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
290300
ls -lR
@@ -384,7 +394,24 @@ jobs:
384394
path: .
385395
- run: |
386396
tar -xf quarto-${{needs.configure.outputs.version}}-win.zip
397+
398+
# Check for share/preview/quarto-preview.js
399+
- name: Ensure share/preview/quarto-preview.js exists
400+
shell: bash
401+
run: |
402+
if [ ! -f "share/preview/quarto-preview.js" ]; then
403+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
404+
exit 1
405+
fi
406+
387407
- run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
408+
409+
- run: |
410+
tar -tzvf quarto-${{needs.configure.outputs.version}}-win.zip
411+
ls -lR
412+
echo $PATH
413+
shell: bash
414+
388415
- run: |
389416
quarto check
390417
quarto --paths
@@ -466,6 +493,16 @@ jobs:
466493
- run: |
467494
tar -zxf quarto-${{needs.configure.outputs.version}}-macos.tar.gz
468495
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
496+
497+
# Check for share/preview/quarto-preview.js
498+
- name: Ensure share/preview/quarto-preview.js exists
499+
shell: bash
500+
run: |
501+
if [ ! -f "share/preview/quarto-preview.js" ]; then
502+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
503+
exit 1
504+
fi
505+
469506
- run: tar -tzvf quarto-${{needs.configure.outputs.version}}-macos.tar.gz | head
470507
- run: ls -lR
471508
- run: echo $PATH

.github/workflows/test-smokes-parallel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,18 @@ on:
1919
- main
2020
- "v[1-9].[0-9]+" # run also on released version branch (for patch releases)
2121
paths-ignore:
22+
# Don't run on PRs that only change these files that
23+
# are not relevant to the tested features
2224
- "src/resources/language/**"
25+
- "dev-docs/**"
26+
# don't run on PR working on other workflows
27+
- ".github/workflows/create-release.yml"
28+
- ".github/workflows/performance-check.yml"
29+
- ".github/workflows/stale-needs-repro.yml"
30+
- ".github/workflows/test-bundle.yml"
31+
- ".github/workflows/test-ff-matrix.yml"
32+
- ".github/workflows/test-quarto-latexmk.yml"
33+
- ".github/workflows/update-test-timing.yml"
2334
push:
2435
# only trigger on branches, not on tags
2536
branches:

0 commit comments

Comments
 (0)