-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from frankpengau/xmas-2022-updates
Dependencies updates
- Loading branch information
Showing
7 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
steps: | ||
- label: ":docker: :hammer:" | ||
plugins: | ||
docker-compose#v4.5.0: | ||
docker-compose#v4.9.0: | ||
run: tests | ||
|
||
- wait | ||
|
||
- label: ":docker: :rocket: Latest" | ||
plugins: | ||
docker-login#v2.1.0: ~ | ||
docker-compose#v4.5.0: | ||
docker-compose#v4.9.0: | ||
push: latest | ||
if: | | ||
build.branch == 'main' | ||
- label: ":docker: :rocket: Tag" | ||
plugins: | ||
docker-login#v2.1.0: ~ | ||
docker-compose#v4.5.0: | ||
docker-compose#v4.9.0: | ||
push: tag | ||
if: | | ||
build.tag != null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
steps: | ||
- label: ":docker: :hammer:" | ||
plugins: | ||
docker-compose#v4.5.0: | ||
docker-compose#v4.9.0: | ||
run: tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: '2' | ||
version: '3.7' | ||
services: | ||
tests: | ||
build: . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bats | ||
|
||
setup() { | ||
load "$BATS_PLUGIN_PATH/load.bash" | ||
|
||
# Uncomment to enable stub debugging | ||
# export BAR_STUB_DEBUG=/dev/tty | ||
} | ||
|
||
@test "bats intentional failure - expects Not AOK" { | ||
run bash -c "echo 'Not AOK!'; exit 1" | ||
assert_failure | ||
} | ||
|
||
@test "bats-mock should throw error" { | ||
stub bar "foo : exit 1" | ||
run bar foo | ||
assert_failure | ||
unstub bar | ||
} | ||
|
||
@test "bats intentional failure - alerts error" { | ||
run echo "error" | ||
|
||
refute_line "success" | ||
assert_line "error" | ||
|
||
run exit 1 | ||
assert_failure | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters