Skip to content

Commit 0ec51bc

Browse files
authored
improve definition of testing matrix, including adding fail-fast and specifying a nicer name (typst-community#30)
1 parent daa59d8 commit 0ec51bc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ on:
88
jobs:
99
tests:
1010
strategy:
11+
# run tests on all versions, even if one fails
12+
fail-fast: false
1113
matrix:
1214
# add any other Typst versions that your package should support
1315
typst-version:
1416
- typst: 0.12
1517
tytanic: 0.1
16-
# the docs don't need to build with all versions supported by the package;
17-
# the latest one is enough
18-
include:
19-
- typst-version: {typst: 0.12, tytanic: 0.1}
20-
doc: 1
18+
# the docs don't need to build with all versions supported by the package;
19+
# the latest one is enough
20+
doc: true
21+
22+
name: Test for ${{ matrix.typst-version.typst }} (Tytanic ${{ matrix.typst-version.tytanic }}${{ matrix.typst-version.doc && ', with docs' }})
2123
runs-on: ubuntu-latest
24+
2225
steps:
2326
- name: Checkout
2427
uses: actions/checkout@v4
@@ -49,5 +52,5 @@ jobs:
4952
retention-days: 5
5053

5154
- name: Build docs
52-
if: ${{ matrix.doc }}
55+
if: ${{ matrix.typst-version.doc }}
5356
run: just doc

0 commit comments

Comments
 (0)