File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 1+ # GENERATED: this file is generated by https://github.com/facet-rs/facet-dev
2+
13name : Tests
24
35on :
2830 echo "::endgroup::"
2931
3032 echo "::group::Doc tests"
31- cargo test --doc --all-features
33+ output=$(cargo test --doc --all-features 2>&1) || exit_code=$?
34+ if [ "${exit_code:-0}" -ne 0 ]; then
35+ if [ $exit_code -eq 101 ] && echo "$output" | grep -q "no library targets found in package"; then
36+ echo "No library targets found, skipping doc tests"
37+ else
38+ echo "$output"
39+ exit $exit_code
40+ fi
41+ fi
3242 echo "::endgroup::"
3343
3444 msrv :
Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ edition = "2021"
66description = " Internal development utilities for Facet"
77keywords = [" code-generation" , " templates" ]
88categories = [" development-tools" ]
9+ rust-version = " 1.88"
910
1011[dependencies ]
1112fs-err = " 3.1.0"
1213log = { version = " 0.4.27" , features = [" std" ] }
1314owo-colors = " 4.2.1"
1415
1516[dev-dependencies ]
16- cargo-husky = { version = " 1.5.0" , default-features = false , features = [" user-hooks" ] }
17+ cargo-husky = { version = " 1.5.0" , default-features = false , features = [
18+ " user-hooks" ,
19+ ] }
Original file line number Diff line number Diff line change 1+ # GENERATED: this file is generated by https://github.com/facet-rs/facet-dev
2+
13name : Tests
24
35on :
2830 echo "::endgroup::"
2931
3032 echo "::group::Doc tests"
31- cargo test --doc --all-features
33+ output=$(cargo test --doc --all-features 2>&1) || exit_code=$?
34+ if [ "${exit_code:-0}" -ne 0 ]; then
35+ if [ $exit_code -eq 101 ] && echo "$output" | grep -q "no library targets found in package"; then
36+ echo "No library targets found, skipping doc tests"
37+ else
38+ echo "$output"
39+ exit $exit_code
40+ fi
41+ fi
3242 echo "::endgroup::"
3343
3444 msrv :
You can’t perform that action at this time.
0 commit comments