Skip to content

Commit 5058b3a

Browse files
authored
Merge pull request google#115 from google/test-with-comprehensive-rust
Test extracting text from multiple books
2 parents 9e894bc + bb1ccde commit 5058b3a

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,21 @@ jobs:
2525
- name: Test
2626
run: cargo test
2727

28-
rust-book:
29-
name: Test with Rust Book
28+
test-other-books:
29+
strategy:
30+
matrix:
31+
include:
32+
# Update the refs below once in a while.
33+
- repo: rust-lang/book
34+
ref: 5b6c1ceaa62ecbd6caef08df39b33b3938e99deb
35+
- repo: google/comprehensive-rust
36+
ref: 0dfd087538ed4b52cf30cafb3b9add49cd6d204a
37+
38+
name: Test with ${{ matrix.repo }}
3039
runs-on: ubuntu-latest
3140
steps:
3241
- name: Checkout repository
33-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
3443

3544
- uses: Swatinem/rust-cache@v2
3645
with:
@@ -43,17 +52,15 @@ jobs:
4352
cargo install --debug --path i18n-helpers
4453
cargo install --debug --locked --version 0.4.35 mdbook
4554
46-
- name: Checkout Rust Book
55+
- name: Checkout ${{ matrix.repo }}
4756
uses: actions/checkout@v4
4857
with:
49-
repository: rust-lang/book
50-
# Update the commit hash once in a while to test newer
51-
# versions.
52-
ref: 5b6c1ceaa62ecbd6caef08df39b33b3938e99deb
53-
path: rust-book
54-
55-
- name: Test extracting text from Rust Book
56-
working-directory: rust-book
58+
repository: ${{ matrix.repo }}
59+
ref: ${{ matrix.ref }}
60+
path: example-book
61+
62+
- name: Test extracting text
63+
working-directory: example-book
5764
run: |
5865
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
5966
msgfmt -o /dev/null --statistics po/messages.pot

0 commit comments

Comments
 (0)