Skip to content

Commit cbd98e8

Browse files
Merge branch 'typst:main' into main
2 parents 203be55 + 0426b6a commit cbd98e8

12 files changed

Lines changed: 4727 additions & 555 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
11
name: Continuous integration
22
on: [push, pull_request]
33

4+
env:
5+
RUSTFLAGS: "-Dwarnings"
6+
RUSTDOCFLAGS: "-Dwarnings"
7+
8+
permissions:
9+
contents: read
10+
411
jobs:
5-
ci:
12+
tests:
13+
name: Tests
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
17+
- uses: dtolnay/rust-toolchain@e814c742d4444ce2f3f6abddea7faf00161ed941 # 1.88.0
18+
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
19+
- run: cargo test --workspace --all-features --no-run
20+
- run: cargo test --workspace --all-features --no-fail-fast
21+
- run: git diff --exit-code
22+
23+
checks:
24+
name: Check clippy, formatting, and documentation
625
runs-on: ubuntu-latest
726
steps:
8-
- uses: actions/checkout@v4
9-
- uses: dtolnay/rust-toolchain@stable
10-
- run: cargo build
11-
- run: cargo test
27+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
28+
- uses: dtolnay/rust-toolchain@e814c742d4444ce2f3f6abddea7faf00161ed941 # 1.88.0
29+
with:
30+
components: clippy, rustfmt
31+
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
32+
- run: cargo clippy --workspace --all-targets --all-features
33+
- run: cargo fmt --check --all
34+
- run: cargo doc --workspace --no-deps

0 commit comments

Comments
 (0)