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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout uppsala
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Format check
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose
# Hand-crafted + unit test suites. Runs in seconds.
- name: Unit and hand-crafted tests
run: cargo test --lib --test xml_conformance --test namespace_conformance --test xpath_conformance --test xsd_conformance --test serialization_conformance --test range_conformance
# W3C conformance suites — the full XML test suite (~1 208 tests) and
# the three XSD test suites (NIST ~19 217, MS ~1 213, Sun ~199). All
# fully deterministic; split into named steps so the CI log shows
# per-suite pass counts instead of one opaque aggregate.
- name: W3C XML conformance
run: cargo test --test w3c_xmlconf -- --nocapture
- name: W3C XSD conformance (NIST Datatypes)
run: cargo test --test w3c_xsts xsts_nist_datatypes -- --nocapture
- name: W3C XSD conformance (MS DataTypes)
run: cargo test --test w3c_xsts xsts_ms_datatypes -- --nocapture
- name: W3C XSD conformance (Sun Combined)
run: cargo test --test w3c_xsts xsts_sun_combined -- --nocapture