Skip to content

Commit 37b0918

Browse files
committed
fix: Remove -it from BATS testing
Interactive shell doesn't seem to work on Actions
1 parent bd83633 commit 37b0918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-image.bats

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/usr/bin/env bats
22

33
@test "Test for node and version" {
4-
run docker run --rm -it node:"$full_tag" node -e "process.stdout.write(process.versions.node)"
4+
run docker run --rm node:"$full_tag" node -e "process.stdout.write(process.versions.node)"
55
[ "$status" -eq 0 ]
66
[ "$output" == "${full_version}" ]
77
}
88

99
@test "Test for npm" {
10-
run docker run --rm -it node:"$full_tag" npm --version
10+
run docker run --rm node:"$full_tag" npm --version
1111
[ "$status" -eq 0 ]
1212
}
1313

1414
@test "Test for yarn" {
15-
run docker run --rm -it node:"$full_tag" yarn --version
15+
run docker run --rm node:"$full_tag" yarn --version
1616
[ "$status" -eq 0 ]
1717
}

0 commit comments

Comments
 (0)