Skip to content

Commit 92f613c

Browse files
oddgrdseanmonstar
authored andcommitted
ci: update script to check both collections
1 parent f997aef commit 92f613c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/check_guides.sh

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

3-
for value in legacy master
3+
for value in guides stable
44
do
55
if [ ! -e "$value/Cargo.toml" ]; then
66
if [ ! -d $value ]; then
77
cargo new $value
88
else
99
cargo init $value
1010
fi
11-
if [ $value = legacy ]; then
11+
if [ $value = guides ]; then
1212
cat >> "$value/Cargo.toml" <<-EOF
1313
futures = "0.3"
1414
hyper = { version = "0.14", features = ["full"] }
@@ -17,7 +17,7 @@ do
1717
EOF
1818
cargo build --manifest-path "$value/Cargo.toml"
1919
fi
20-
if [ $value = master ]; then
20+
if [ $value = stable ]; then
2121
cat >> "$value/Cargo.toml" <<-EOF
2222
hyper = { version = "1.0.0-rc.1", features = ["full"] }
2323
tokio = { version = "1", features = ["full"] }
@@ -26,7 +26,7 @@ EOF
2626
cargo build --manifest-path "$value/Cargo.toml"
2727
fi
2828
fi
29-
29+
3030
test_file() {
3131
echo "Testing: $f"
3232
rustdoc --edition 2018 --test $1 -L "$value/target/debug/deps"
@@ -38,7 +38,7 @@ EOF
3838
fi
3939

4040
status=0
41-
for f in `git ls-files | grep "^_guides\/$value.*\.md$"`; do
41+
for f in `git ls-files | grep "^_$value\/.*\.md$"`; do
4242
test_file $f
4343
s=$?
4444
if [ "$s" != "0" ]; then

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Gemfile*
22
_site*
33
.sass-cache
4-
/legacy
5-
/master
4+
/guides
5+
/stable

0 commit comments

Comments
 (0)