Skip to content

Commit 6cc5a92

Browse files
committed
Added a test to the gh actions workflow
1 parent 6e2adcb commit 6cc5a92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test-initdemo.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
OCTOPUS_SERVER_BASE64_LICENSE: ${{secrets.OCTOPUS_SERVER_BASE64_LICENSE}}
1515
TF_VAR_docker_username: ${{secrets.DOCKERHUB_USERNAME}}
1616
TF_VAR_docker_password: ${{secrets.DOCKERHUB_TOKEN}}
17-
run: ./initdemo.sh
17+
run: ./initdemo.sh
18+
- name: Test projects exist
19+
run: |
20+
curl -h "X-Octopus-ApiKey: API-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" http://localhost:18080/api/Spaces-1/Projects/hello-world/runbooks
21+
if [[ $? != "0" ]]; then exit 1; fi

0 commit comments

Comments
 (0)