Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit d072c45

Browse files
committed
chore: add rust-tests.yml
1 parent b64acf1 commit d072c45

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/rust-tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Rust Tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
env:
14+
CARGO_TERM_COLOR: always
15+
16+
jobs:
17+
test:
18+
name: Run Tests
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Rust toolchain
26+
uses: dtolnay/rust-toolchain@stable
27+
with:
28+
toolchain: 1.88.0
29+
30+
- name: Cache cargo dependencies
31+
uses: Swatinem/rust-cache@v2
32+
33+
- name: Run barebones tests (no features)
34+
run: cargo test --no-default-features --lib
35+
36+
- name: Run default tests
37+
run: cargo test --verbose --lib
38+
39+
- name: Run web tests
40+
run: cargo test --features "web" --lib
41+
42+
- name: Run complete tests (all features)
43+
run: cargo test --features "default,snapshot_builder,fs_import,url_import,web,os_exit" --lib

0 commit comments

Comments
 (0)