Skip to content

Commit

Permalink
fix: Remove -it from BATS testing
Browse files Browse the repository at this point in the history
Interactive shell doesn't seem to work on Actions
  • Loading branch information
nschonni committed Aug 15, 2020
1 parent 867a567 commit a84ff50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-image.bats
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/usr/bin/env bats

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

@test "Test for npm" {
run docker run --rm -it node:"$full_tag" npm --version
run docker run --rm node:"$full_tag" npm --version
[ "$status" -eq 0 ]
}

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

0 comments on commit a84ff50

Please sign in to comment.