Skip to content

Commit d18ba68

Browse files
committed
ci: fix up testing the guides
1 parent 119bec0 commit d18ba68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/check_guides.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
status=0
4+
35
for value in legacy stable; do
46
if [ ! -e "$value/Cargo.toml" ]; then
57
if [ ! -d "$value" ]; then
@@ -11,7 +13,6 @@ for value in legacy stable; do
1113
case "$value" in
1214
legacy)
1315
cat >> "$value/Cargo.toml" <<-EOF
14-
[dependencies]
1516
futures = "0.3"
1617
hyper = { version = "0.14", features = ["full"] }
1718
hyper-tls = "0.5"
@@ -20,7 +21,6 @@ EOF
2021
;;
2122
stable)
2223
cat >> "$value/Cargo.toml" <<-EOF
23-
[dependencies]
2424
hyper = { version = "1", features = ["full"] }
2525
tokio = { version = "1", features = ["full"] }
2626
http-body-util = "0.1"
@@ -43,7 +43,6 @@ EOF
4343
exit $?
4444
fi
4545

46-
status=0
4746
for f in $(git ls-files | grep "^_$value\/.*\.md$"); do
4847
test_file "$f"
4948
s=$?

0 commit comments

Comments
 (0)