File tree Expand file tree Collapse file tree 3 files changed +53
-2
lines changed Expand file tree Collapse file tree 3 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,29 @@ name: Docker Image CI
33on :
44 push :
55 branches : [ dev ]
6- pull_request :
7- branches : [ dev ]
86
97env :
108 DOCKER_REPO_NAME : elixircloud/cwl-wes
119
1210jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : read
15+ packages : write
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v2
19+ - name : Test build
20+ run : docker-compose up -d
21+ - name : Sleep
22+ shell : bash
23+ run : sleep 30;
24+ - name : Test endpoint
25+ shell : bash
26+ run : bash test-http-call.bash
27+ - name : End test
28+ run : docker-compose down
1329
1430 build :
1531
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ # This workflow uses actions that are not certified by GitHub.
4+ # They are provided by a third-party and are governed by
5+ # separate terms of service, privacy policy, and support
6+ # documentation.
7+
8+ on :
9+ pull_request :
10+ branches : [ dev ]
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ packages : write
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v2
21+ - name : Test build
22+ run : docker-compose up -d
23+ - name : Sleep
24+ shell : bash
25+ run : sleep 30;
26+ - name : Test endpoint
27+ shell : bash
28+ run : bash test-http-call.bash
29+ - name : End test
30+ run : docker-compose down
Original file line number Diff line number Diff line change 1+ CODE=$( curl --write-out ' %{http_code}' --output /dev/null --silent localhost:8080/ga4gh/wes/v1/runs)
2+ if [ $CODE != " 200" ]
3+ then
4+ exit 1;
5+ fi
You can’t perform that action at this time.
0 commit comments