File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2121
2222 - name : Build image
2323 run : |
24- make build
24+ make build-with-cache
2525
2626 - name : Tests
2727 run : |
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ build:
1010build-quick :
1111 docker build -t $(IMAGE_NAME ) :$(TAG ) .
1212
13+ build-with-cache :
14+ # Used by CI to speed up build and test process
15+ docker pull $(IMAGE_NAME ) :$(TAG )
16+ docker build -t $(IMAGE_NAME ) :$(TAG ) --cache-from $(IMAGE_NAME ) :$(TAG ) .
17+
1318test :
1419 bats -r tests/
1520
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ load test_functions.bash
1616 panubo/postgres-toolbox psql -- -c ' SELECT current_database();'
1717 diag " ${output} "
1818 [[ " ${status} " -eq 0 ]]
19+ # check the output of the second last line
20+ [[ " ${lines[-2]} " = " myuser" ]]
1921}
2022
2123# echo "===> Test create-user-db command"
You can’t perform that action at this time.
0 commit comments