Skip to content

Commit 02c9897

Browse files
committed
Test release and pre-release
1 parent 3ab775c commit 02c9897

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,28 @@ on:
1717
tinytex:
1818
description: 'If true, install TinyTex, required for PDF rendering'
1919
required: false
20-
default: 'true'
20+
default: true
21+
type: boolean
2122

2223
jobs:
2324
quarto-setup:
2425
runs-on: ${{ matrix.config.os }}
25-
name: ${{ matrix.config.os }}
26+
name: ${{ matrix.config.os }} (${{ inputs.version || matrix.version }})
2627

2728
strategy:
2829
fail-fast: false
2930
matrix:
31+
version: [release, pre-release]
3032
config:
3133
- { os: macos-latest }
3234
- { os: macos-13 }
3335
- { os: windows-latest }
3436
- { os: ubuntu-latest }
3537
- { os: ubuntu-22.04-arm }
38+
exclude:
39+
# Skip matrix versions when using workflow_dispatch
40+
- version: ${{ github.event_name == 'workflow_dispatch' && 'release' || '' }}
41+
- version: ${{ github.event_name == 'workflow_dispatch' && 'pre-release' || '' }}
3642

3743
steps:
3844
- uses: actions/checkout@v4
@@ -41,8 +47,8 @@ jobs:
4147
env:
4248
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4349
with:
44-
version: ${{ inputs.version || 'release' }}
45-
tinytex: ${{ inputs.tinytex == 'true'}}
50+
version: ${{ inputs.version || matrix.version }}
51+
tinytex: ${{ inputs.tinytex || true }}
4652

4753
- run: quarto --version
4854

@@ -51,4 +57,4 @@ jobs:
5157

5258
- run: where.exe quarto
5359
if: ${{ runner.os == 'Windows' }}
54-
60+

0 commit comments

Comments
 (0)