-
Notifications
You must be signed in to change notification settings - Fork 331
45 lines (40 loc) · 1.18 KB
/
test-bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Tests whether Quarto can successfully bundle and run the bundled javascript.
# If this test fails, the release version of Quarto will error when run since
# bundling has failed.
name: Bundle Test
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
# only trigger on branches, not on tags
branches: [main]
jobs:
test-bundle:
runs-on: ubuntu-latest
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'quarto-dev/quarto-cli')
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# checkout full tree
fetch-depth: 0
- name: Set Path
shell: bash
run: |
echo "$HOME/bin" >> $GITHUB_PATH
- name: Configure Quarto
uses: ./.github/workflows/actions/quarto-dev
- name: Test Bundle
shell: bash
run: |
pushd package/src
./quarto-bld prepare-dist
mv ../../src/quarto.ts ../../src/quarto1.ts
pushd ../pkg-working/bin
./quarto check
- name: Validate Bundle
shell: bash
run: |
pushd package/src
./quarto-bld validate-bundle