Skip to content

Commit

Permalink
[TASK] Add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ochorocho committed Jul 7, 2024
1 parent 13de9e1 commit 3ff8fb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
name: Build Container
name: Build and Push Container
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '!main'
jobs:
build:
name: Build Container
name: Build and Test Container
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 4 additions & 0 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
@test "See docker version" {
run docker-run "docker version -f json"

echo $output

version=$(echo "$output" | yq .Client.Version)
regex='^([0-9]+)\.([0-9]+)\.([0-9]+)$'

Expand All @@ -13,6 +15,8 @@
@test "See ddev version" {
run docker-run "ddev version -j"

echo $output

version=$(echo "$output" | head -2 | tail -1 | yq '.raw.["DDEV version"]')
regex='^v([0-9]+)\.([0-9]+)\.([0-9]+)$'

Expand Down

0 comments on commit 3ff8fb8

Please sign in to comment.